Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinzPizza42 committed Jan 9, 2025
1 parent d4c336c commit 3abfa35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/de/j/deathMinigames/main/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,10 @@ public HashMap<String, String> 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();
Expand Down

0 comments on commit 3abfa35

Please sign in to comment.