diff options
author | Wesley Wolfe <weswolf@aol.com> | 2013-08-02 19:04:39 -0500 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2013-08-02 20:03:50 -0500 |
commit | 93cfe3961f985ac9d45030f520480bd37f37bf82 (patch) | |
tree | 5830500a10ced4475af511d18cd3a332b2992fc2 /src/main/java | |
parent | 720a8d706afcc2a099cbfed7ff42e34977199738 (diff) | |
download | craftbukkit-93cfe3961f985ac9d45030f520480bd37f37bf82.tar craftbukkit-93cfe3961f985ac9d45030f520480bd37f37bf82.tar.gz craftbukkit-93cfe3961f985ac9d45030f520480bd37f37bf82.tar.lz craftbukkit-93cfe3961f985ac9d45030f520480bd37f37bf82.tar.xz craftbukkit-93cfe3961f985ac9d45030f520480bd37f37bf82.zip |
Indicate help is a command. Fixes BUKKIT-4642
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftServer.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 6cb50b71..51afd256 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -524,7 +524,11 @@ public final class CraftServer implements Server { return true; } - sender.sendMessage("Unknown command. Type \"help\" for help."); + if (sender instanceof Player) { + sender.sendMessage("Unknown command. Type \"/help\" for help."); + } else { + sender.sendMessage("Unknown command. Type \"help\" for help."); + } return false; } |