Fix homes not deleting for unloaded worlds
This commit is contained in:
@@ -110,6 +110,11 @@ public class PlayerConfig extends YamlConfiguration {
|
||||
setStoredLocation(death ? "teleports.death" : "teleports.back", location);
|
||||
}
|
||||
|
||||
public boolean hasHome(String name) {
|
||||
ConfigurationSection section = getConfigurationSection("home." + name);
|
||||
return section != null;
|
||||
}
|
||||
|
||||
public Location getHome(String name) {
|
||||
return getStoredLocation("home." + name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user