mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-27 00:45:40 +01:00
Improved waypoint error messages
This commit is contained in:
parent
b379597afb
commit
92e6c17c8d
@ -78,7 +78,7 @@ public class Waypoint {
|
||||
String[] split = string.split(" ");
|
||||
|
||||
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 y = Double.parseDouble(split[2]);
|
||||
|
@ -19,7 +19,7 @@ public class WaypointManager {
|
||||
try {
|
||||
register(new Waypoint(config.getConfigurationSection(key)));
|
||||
} 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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user