mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-27 19:47:49 +01:00
Fixed enable issues caused by ServerInfo not being enabled
This commit is contained in:
parent
b642432b1c
commit
775baf5a00
@ -126,11 +126,11 @@ public class PlanSystem implements SubSystem {
|
||||
localeSystem,
|
||||
versionCheckSystem,
|
||||
databaseSystem,
|
||||
importSystem,
|
||||
exportSystem,
|
||||
webServerSystem,
|
||||
processing,
|
||||
serverInfo,
|
||||
webServerSystem,
|
||||
importSystem,
|
||||
exportSystem,
|
||||
infoSystem,
|
||||
cacheSystem,
|
||||
listenerSystem,
|
||||
|
@ -92,7 +92,7 @@ public class HtmlExport extends SpecificExport {
|
||||
}
|
||||
|
||||
public void exportServer(UUID serverUUID) {
|
||||
if (!usingProxy && connectionSystem.isServerAvailable()) {
|
||||
if (serverInfo.getServer().isNotProxy() && connectionSystem.isServerAvailable()) {
|
||||
return;
|
||||
}
|
||||
dbSystem.getDatabase().query(ServerQueries.fetchServerMatchingIdentifier(serverUUID))
|
||||
@ -121,7 +121,7 @@ public class HtmlExport extends SpecificExport {
|
||||
}
|
||||
|
||||
public void exportCachedPlayerPage(UUID playerUUID) {
|
||||
if (!usingProxy && connectionSystem.isServerAvailable()) {
|
||||
if (serverInfo.getServer().isNotProxy() && connectionSystem.isServerAvailable()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -40,9 +40,7 @@ import java.util.UUID;
|
||||
public abstract class SpecificExport {
|
||||
|
||||
private final PlanFiles files;
|
||||
private final ServerInfo serverInfo;
|
||||
|
||||
protected final boolean usingProxy;
|
||||
protected final ServerInfo serverInfo;
|
||||
|
||||
protected SpecificExport(
|
||||
PlanFiles files,
|
||||
@ -50,7 +48,6 @@ public abstract class SpecificExport {
|
||||
) {
|
||||
this.files = files;
|
||||
this.serverInfo = serverInfo;
|
||||
usingProxy = serverInfo.getServer().isProxy();
|
||||
}
|
||||
|
||||
protected File getFolder() {
|
||||
@ -123,7 +120,7 @@ public abstract class SpecificExport {
|
||||
.replace("src=\"js/", "src=\"../js/");
|
||||
|
||||
File htmlLocation;
|
||||
if (usingProxy) {
|
||||
if (serverInfo.getServer().isProxy()) {
|
||||
if (serverUUID.equals(serverInfo.getServerUUID())) {
|
||||
htmlLocation = new File(getFolder(), "network");
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user