Indicate help is a command. Fixes BUKKIT-4642

By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
CraftBukkit/Spigot 2013-08-02 19:04:39 -05:00
parent 1e6a141afb
commit 249638ac01

View file

@ -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;
}