Removed issue from WorldConfig

This commit is contained in:
Daniel 2019-04-30 00:44:16 +02:00
parent 85068c68cd
commit 682c405609

View File

@ -23,6 +23,8 @@ import java.util.*;
@SuppressWarnings("ResultOfMethodCallIgnored")
public class WorldConfig {
private static final HashMap<String, WorldConfig> instances = new HashMap<>();
public static File getWorldFile(String worldname) {
File worldconfig = new File(Bukkit.getWorldContainer(), worldname + "/worldconfig.yml");
if (!worldconfig.exists()) {
@ -44,8 +46,6 @@ public class WorldConfig {
return getWorldFile(worldname).exists();
}
private static final HashMap<String, WorldConfig> instances = new HashMap<>();
/**
* Gets the worldconfig for a specific worldname or creates a new one of no
* exists