mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-29 04:27:53 +01:00
Fixed Bungee Analysis refresh attempt when Bukkit not online (#512)
This commit is contained in:
parent
1155d10934
commit
b6d7be5bd4
@ -34,7 +34,7 @@ public class ServerPageHandler extends PageHandler {
|
|||||||
if (response != null) {
|
if (response != null) {
|
||||||
return response;
|
return response;
|
||||||
} else {
|
} else {
|
||||||
return AnalysisPageResponse.refreshNow();
|
return AnalysisPageResponse.refreshNow(serverUUID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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.NoServersException;
|
||||||
import com.djrapitops.plan.api.exceptions.connection.WebException;
|
import com.djrapitops.plan.api.exceptions.connection.WebException;
|
||||||
import com.djrapitops.plan.system.info.InfoSystem;
|
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.processing.Processor;
|
||||||
import com.djrapitops.plan.system.webserver.response.Response;
|
import com.djrapitops.plan.system.webserver.response.Response;
|
||||||
import com.djrapitops.plan.system.webserver.response.cache.PageId;
|
import com.djrapitops.plan.system.webserver.response.cache.PageId;
|
||||||
@ -20,10 +19,6 @@ import java.util.UUID;
|
|||||||
*/
|
*/
|
||||||
public class AnalysisPageResponse extends Response {
|
public class AnalysisPageResponse extends Response {
|
||||||
|
|
||||||
public static AnalysisPageResponse refreshNow() {
|
|
||||||
return refreshNow(ServerInfo.getServerUUID());
|
|
||||||
}
|
|
||||||
|
|
||||||
public static AnalysisPageResponse refreshNow(UUID serverUUID) {
|
public static AnalysisPageResponse refreshNow(UUID serverUUID) {
|
||||||
Processor.queue(() -> {
|
Processor.queue(() -> {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user