diff --git a/Plan/common/src/main/java/com/djrapitops/plan/delivery/rendering/pages/PlayerPage.java b/Plan/common/src/main/java/com/djrapitops/plan/delivery/rendering/pages/PlayerPage.java index 541cd000b..3fdc34c1b 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/delivery/rendering/pages/PlayerPage.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/delivery/rendering/pages/PlayerPage.java @@ -102,7 +102,6 @@ public class PlayerPage implements Page { placeholders.put("timeZone", config.getTimeZoneOffsetHours()); placeholders.put("gmPieColors", theme.getValue(ThemeVal.GRAPH_GM_PIE)); - placeholders.put("backButton", (serverInfo.getServer().isProxy() ? Html.BACK_BUTTON_NETWORK : Html.BACK_BUTTON_SERVER).create()); placeholders.put("contributors", Contributors.generateContributorHtml()); String html = locale.replaceLanguageInHtml(placeholders.apply(templateHtml)); @@ -110,6 +109,7 @@ public class PlayerPage implements Page { placeholders = new PlaceholderReplacer(); PlayerPluginTab pluginTabs = pageFactory.inspectPluginTabs(playerUUID); + placeholders.put("backButton", (serverInfo.getServer().isProxy() ? Html.BACK_BUTTON_NETWORK : Html.BACK_BUTTON_SERVER).create()); placeholders.put("navPluginsTabs", pluginTabs.getNav()); placeholders.put("pluginsTabs", pluginTabs.getTab()); diff --git a/Plan/common/src/main/java/com/djrapitops/plan/delivery/rendering/pages/ServerPage.java b/Plan/common/src/main/java/com/djrapitops/plan/delivery/rendering/pages/ServerPage.java index afc0d3a07..1542bd5fd 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/delivery/rendering/pages/ServerPage.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/delivery/rendering/pages/ServerPage.java @@ -88,7 +88,6 @@ public class ServerPage implements Page { placeholders.put("timeZone", config.getTimeZoneOffsetHours()); placeholders.put("gmPieColors", theme.getValue(ThemeVal.GRAPH_GM_PIE)); - placeholders.put("backButton", serverInfo.getServer().isProxy() ? Html.BACK_BUTTON_NETWORK.create() : ""); placeholders.put("contributors", Contributors.generateContributorHtml()); placeholders.put("version", versionChecker.getUpdateButton().orElse(versionChecker.getCurrentVersionButton())); placeholders.put("updateModal", versionChecker.getUpdateModal()); @@ -102,6 +101,7 @@ public class ServerPage implements Page { String tabs = JSONCache.getOrCacheString(DataID.EXTENSION_TABS, serverUUID, () -> pluginTabs.get().getTabs()); PlaceholderReplacer pluginPlaceholders = new PlaceholderReplacer(); + pluginPlaceholders.put("backButton", serverInfo.getServer().isProxy() ? Html.BACK_BUTTON_NETWORK.create() : ""); pluginPlaceholders.put("navPluginsTabs", nav); pluginPlaceholders.put("tabsPlugins", tabs);