summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftServer.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
index 500c4909..f11f7329 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
@@ -485,7 +485,12 @@ public final class CraftServer implements Server {
return true;
}
}
- return dispatchCommand(sender, serverCommand.command);
+ try {
+ return dispatchCommand(sender, serverCommand.command);
+ } catch (Exception ex) {
+ getLogger().log(Level.WARNING, "Unexpected exception while parsing console command \"" + serverCommand.command + '"', ex);
+ return false;
+ }
}
public boolean dispatchCommand(CommandSender sender, String commandLine) {