diff --git a/Plan/common/src/main/java/com/djrapitops/plan/utilities/html/pages/AnalysisPage.java b/Plan/common/src/main/java/com/djrapitops/plan/utilities/html/pages/AnalysisPage.java index 22a5fb79f..cbabb53e2 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/utilities/html/pages/AnalysisPage.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/utilities/html/pages/AnalysisPage.java @@ -23,6 +23,7 @@ import com.djrapitops.plan.system.file.PlanFiles; import com.djrapitops.plan.system.update.VersionCheckSystem; import com.djrapitops.plan.utilities.formatting.Formatter; import com.djrapitops.plan.utilities.formatting.PlaceholderReplacer; +import com.djrapitops.plugin.api.Check; import com.djrapitops.plugin.benchmarking.Timings; import java.io.IOException; @@ -74,6 +75,11 @@ public class AnalysisPage implements Page { TPS_LOW_COLOR, WORLD_MAP_HIGH_COLOR, WORLD_MAP_LOW_COLOR, AVG_PING_COLOR, MAX_PING_COLOR, MIN_PING_COLOR ); + if (Check.isBungeeAvailable() || Check.isVelocityAvailable()) { + placeholderReplacer.put("backButton", "
  • arrow_backcloud
  • "); + } else { + placeholderReplacer.put("backButton", ""); + } placeholderReplacer.put("update", versionCheckSystem.getUpdateHtml().orElse("")); playersTable(placeholderReplacer); sessionStructures(placeholderReplacer); diff --git a/Plan/common/src/main/java/com/djrapitops/plan/utilities/html/pages/InspectPage.java b/Plan/common/src/main/java/com/djrapitops/plan/utilities/html/pages/InspectPage.java index 72e434d39..9c8872a30 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/utilities/html/pages/InspectPage.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/utilities/html/pages/InspectPage.java @@ -45,6 +45,7 @@ import com.djrapitops.plan.utilities.html.structure.Accordions; import com.djrapitops.plan.utilities.html.structure.ServerAccordion; import com.djrapitops.plan.utilities.html.structure.SessionAccordion; import com.djrapitops.plan.utilities.html.tables.HtmlTables; +import com.djrapitops.plugin.api.Check; import com.djrapitops.plugin.api.TimeAmount; import com.djrapitops.plugin.benchmarking.Timings; @@ -252,6 +253,12 @@ public class InspectPage implements Page { : serverName ); + if (Check.isBungeeAvailable() || Check.isVelocityAvailable()) { + replacer.put("backButton", "
  • arrow_backcloud
  • "); + } else { + replacer.put("backButton", "
  • arrow_backstorage
  • "); + } + return replacer.apply(files.readCustomizableResourceFlat("web/player.html")); } diff --git a/Plan/common/src/main/resources/web/player.html b/Plan/common/src/main/resources/web/player.html index 3c030df11..134b989fd 100644 --- a/Plan/common/src/main/resources/web/player.html +++ b/Plan/common/src/main/resources/web/player.html @@ -87,9 +87,7 @@