diff --git a/src/main/java/de/j/deathMinigames/main/Config.java b/src/main/java/de/j/deathMinigames/main/Config.java index 7f1e2d5..e9467ae 100644 --- a/src/main/java/de/j/deathMinigames/main/Config.java +++ b/src/main/java/de/j/deathMinigames/main/Config.java @@ -322,6 +322,10 @@ public HashMap getDatabaseConfig() { } public synchronized void setServerName(String serverName) { + if(serverName == null) { + Main.getMainLogger().warning("ServerName is null!"); + return; + } if(!Main.getPlugin().getConfig().contains("Tablist.ServerName")) { Main.getPlugin().getConfig().set("Tablist.ServerName", serverName); Main.getPlugin().saveConfig();