mirror of
https://github.com/RonanPlugins/BetterRTP.git
synced 2025-07-04 00:36:08 +00:00
locations.yml loading fix
This commit is contained in:
parent
077c55723d
commit
d18bd94b3a
@ -43,7 +43,10 @@ public class WorldLocation implements RTPWorld, RTPWorld_Defaulted {
|
|||||||
if (section.get("World") != null) {
|
if (section.get("World") != null) {
|
||||||
if (section.get("World").getClass() == String.class) {
|
if (section.get("World").getClass() == String.class) {
|
||||||
world = Bukkit.getWorld(section.get("World").toString());
|
world = Bukkit.getWorld(section.get("World").toString());
|
||||||
|
if (world != null)
|
||||||
BetterRTP.debug("- - World: " + world.getName());
|
BetterRTP.debug("- - World: " + world.getName());
|
||||||
|
else
|
||||||
|
BetterRTP.getInstance().getLogger().warning("Location `" + location_name + "` is declared, but the world " + section.get("World").toString() + " doesn't exist!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (world == null) {
|
if (world == null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user