Improved waypoint error messages

This commit is contained in:
Jules 2022-02-23 18:48:04 +01:00
parent b379597afb
commit 92e6c17c8d
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ public class Waypoint {
String[] split = string.split(" "); String[] split = string.split(" ");
World world = Bukkit.getWorld(split[0]); World world = Bukkit.getWorld(split[0]);
Validate.notNull(world, "Could not find world " + world); Validate.notNull(world, "Could not find world with name '" + split[0]+"'");
double x = Double.parseDouble(split[1]); double x = Double.parseDouble(split[1]);
double y = Double.parseDouble(split[2]); double y = Double.parseDouble(split[2]);

View File

@ -19,7 +19,7 @@ public class WaypointManager {
try { try {
register(new Waypoint(config.getConfigurationSection(key))); register(new Waypoint(config.getConfigurationSection(key)));
} catch (IllegalArgumentException exception) { } catch (IllegalArgumentException exception) {
MMOCore.log(Level.WARNING, "Could not load waypoint " + key + ": " + exception.getMessage()); MMOCore.log(Level.WARNING, "Could not load waypoint '" + key + "': " + exception.getMessage());
} }
} }