From b6d7be5bd4f8f72ea97edce569ace377d45f3ede Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Thu, 1 Feb 2018 21:02:04 +0200 Subject: [PATCH] Fixed Bungee Analysis refresh attempt when Bukkit not online (#512) --- .../plan/system/webserver/pages/ServerPageHandler.java | 2 +- .../webserver/response/pages/AnalysisPageResponse.java | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Plan/src/main/java/com/djrapitops/plan/system/webserver/pages/ServerPageHandler.java b/Plan/src/main/java/com/djrapitops/plan/system/webserver/pages/ServerPageHandler.java index 662356dc6..67230dd0e 100644 --- a/Plan/src/main/java/com/djrapitops/plan/system/webserver/pages/ServerPageHandler.java +++ b/Plan/src/main/java/com/djrapitops/plan/system/webserver/pages/ServerPageHandler.java @@ -34,7 +34,7 @@ public class ServerPageHandler extends PageHandler { if (response != null) { return response; } else { - return AnalysisPageResponse.refreshNow(); + return AnalysisPageResponse.refreshNow(serverUUID); } } diff --git a/Plan/src/main/java/com/djrapitops/plan/system/webserver/response/pages/AnalysisPageResponse.java b/Plan/src/main/java/com/djrapitops/plan/system/webserver/response/pages/AnalysisPageResponse.java index 1b373085e..a863fa36e 100644 --- a/Plan/src/main/java/com/djrapitops/plan/system/webserver/response/pages/AnalysisPageResponse.java +++ b/Plan/src/main/java/com/djrapitops/plan/system/webserver/response/pages/AnalysisPageResponse.java @@ -3,7 +3,6 @@ package com.djrapitops.plan.system.webserver.response.pages; import com.djrapitops.plan.api.exceptions.connection.NoServersException; import com.djrapitops.plan.api.exceptions.connection.WebException; import com.djrapitops.plan.system.info.InfoSystem; -import com.djrapitops.plan.system.info.server.ServerInfo; import com.djrapitops.plan.system.processing.Processor; import com.djrapitops.plan.system.webserver.response.Response; import com.djrapitops.plan.system.webserver.response.cache.PageId; @@ -20,10 +19,6 @@ import java.util.UUID; */ public class AnalysisPageResponse extends Response { - public static AnalysisPageResponse refreshNow() { - return refreshNow(ServerInfo.getServerUUID()); - } - public static AnalysisPageResponse refreshNow(UUID serverUUID) { Processor.queue(() -> { try {