diff --git a/src/main/java/me/SuperRonanCraft/BetterRTP/references/rtpinfo/worlds/WorldLocation.java b/src/main/java/me/SuperRonanCraft/BetterRTP/references/rtpinfo/worlds/WorldLocation.java index 7d6a01e..7239f2b 100644 --- a/src/main/java/me/SuperRonanCraft/BetterRTP/references/rtpinfo/worlds/WorldLocation.java +++ b/src/main/java/me/SuperRonanCraft/BetterRTP/references/rtpinfo/worlds/WorldLocation.java @@ -43,7 +43,10 @@ public WorldLocation(String location_name) { if (section.get("World") != null) { if (section.get("World").getClass() == String.class) { world = Bukkit.getWorld(section.get("World").toString()); - BetterRTP.debug("- - World: " + world.getName()); + if (world != null) + 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) {