mirror of
https://github.com/trainerlord/WorldSystem.git
synced 2025-01-05 18:37:48 +01:00
Removed issue from WorldConfig
This commit is contained in:
parent
85068c68cd
commit
682c405609
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user