Configurable Messages

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2013-06-21 19:21:58 +10:00
parent cabf908e4c
commit 55148a3f2c
4 changed files with 42 additions and 7 deletions

View File

@@ -904,11 +904,11 @@ public final class CraftServer implements Server {
return true;
}
if (sender instanceof Player) {
sender.sendMessage("Unknown command. Type \"/help\" for help.");
} else {
sender.sendMessage("Unknown command. Type \"help\" for help.");
// Spigot start
if (!org.spigotmc.SpigotConfig.unknownCommandMessage.isEmpty()) {
sender.sendMessage(org.spigotmc.SpigotConfig.unknownCommandMessage);
}
// Spigot end
return false;
}