mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-09 12:20:36 +01:00
Fixed NPE on PlayersPage if Export is enabled
This commit is contained in:
parent
ab99ed1976
commit
f05108fe63
@ -22,6 +22,7 @@ import com.djrapitops.plan.system.database.databases.Database;
|
|||||||
import com.djrapitops.plan.system.file.PlanFiles;
|
import com.djrapitops.plan.system.file.PlanFiles;
|
||||||
import com.djrapitops.plan.system.info.server.ServerInfo;
|
import com.djrapitops.plan.system.info.server.ServerInfo;
|
||||||
import com.djrapitops.plan.system.settings.config.PlanConfig;
|
import com.djrapitops.plan.system.settings.config.PlanConfig;
|
||||||
|
import com.djrapitops.plan.system.settings.paths.PluginSettings;
|
||||||
import com.djrapitops.plan.system.settings.paths.ProxySettings;
|
import com.djrapitops.plan.system.settings.paths.ProxySettings;
|
||||||
import com.djrapitops.plan.system.update.VersionCheckSystem;
|
import com.djrapitops.plan.system.update.VersionCheckSystem;
|
||||||
import com.djrapitops.plan.utilities.formatting.PlaceholderReplacer;
|
import com.djrapitops.plan.utilities.formatting.PlaceholderReplacer;
|
||||||
@ -74,7 +75,7 @@ public class PlayersPage implements Page {
|
|||||||
placeholderReplacer.put("version", versionCheckSystem.getCurrentVersion());
|
placeholderReplacer.put("version", versionCheckSystem.getCurrentVersion());
|
||||||
placeholderReplacer.put("update", versionCheckSystem.getUpdateHtml().orElse(""));
|
placeholderReplacer.put("update", versionCheckSystem.getUpdateHtml().orElse(""));
|
||||||
if (Check.isBukkitAvailable()) {
|
if (Check.isBukkitAvailable()) {
|
||||||
placeholderReplacer.put("networkName", serverInfo.getServer().getName());
|
placeholderReplacer.put("networkName", config.get(PluginSettings.SERVER_NAME));
|
||||||
} else {
|
} else {
|
||||||
placeholderReplacer.put("networkName", config.get(ProxySettings.NETWORK_NAME));
|
placeholderReplacer.put("networkName", config.get(ProxySettings.NETWORK_NAME));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user