mirror of
https://github.com/trainerlord/WorldSystem.git
synced 2025-01-21 21:01:53 +01:00
Removed issue from WorldConfig
This commit is contained in:
parent
85068c68cd
commit
682c405609
@ -23,6 +23,8 @@ import java.util.*;
|
|||||||
@SuppressWarnings("ResultOfMethodCallIgnored")
|
@SuppressWarnings("ResultOfMethodCallIgnored")
|
||||||
public class WorldConfig {
|
public class WorldConfig {
|
||||||
|
|
||||||
|
private static final HashMap<String, WorldConfig> instances = new HashMap<>();
|
||||||
|
|
||||||
public static File getWorldFile(String worldname) {
|
public static File getWorldFile(String worldname) {
|
||||||
File worldconfig = new File(Bukkit.getWorldContainer(), worldname + "/worldconfig.yml");
|
File worldconfig = new File(Bukkit.getWorldContainer(), worldname + "/worldconfig.yml");
|
||||||
if (!worldconfig.exists()) {
|
if (!worldconfig.exists()) {
|
||||||
@ -44,8 +46,6 @@ public class WorldConfig {
|
|||||||
return getWorldFile(worldname).exists();
|
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
|
* Gets the worldconfig for a specific worldname or creates a new one of no
|
||||||
* exists
|
* exists
|
||||||
|
Loading…
Reference in New Issue
Block a user