Java 1.5 compat.

By: Erik Broes <erikbroes@ripe.net>
This commit is contained in:
Bukkit/Spigot
2011-03-02 15:23:15 +01:00
parent 2d93fec7d2
commit 6410e49ab9
3 changed files with 24 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ public final class PluginCommand extends Command {
throw new CommandException("Unhandled exception executing command '" + commandLabel + "' in plugin " + owningPlugin.getDescription().getFullName(), ex);
}
if (!success && !usageMessage.isEmpty()) {
if (!success && usageMessage.length() > 0) {
sender.sendMessage(usageMessage.replace("<command>", commandLabel));
}