Add other usage string.

This commit is contained in:
GJ 2013-02-12 08:39:45 -05:00
parent 70f588cce1
commit c822be4a53

View File

@ -30,7 +30,7 @@ public class PartyLockCommand implements CommandExecutor {
case 2:
if (!args[0].equalsIgnoreCase("lock")) {
sender.sendMessage(LocaleLoader.getString("Commands.Usage.2", "party", "lock", "[on|off]"));
sendUsageStrings(sender);
return true;
}
@ -41,13 +41,13 @@ public class PartyLockCommand implements CommandExecutor {
unlockParty(sender, command);
}
else {
sender.sendMessage(LocaleLoader.getString("Commands.Usage.2", "party", "lock", "[on|off]"));
sendUsageStrings(sender);
}
return true;
default:
sender.sendMessage(LocaleLoader.getString("Commands.Usage.2", "party", "lock", "[on|off]"));
sendUsageStrings(sender);
return true;
}
}
@ -89,4 +89,9 @@ public class PartyLockCommand implements CommandExecutor {
playerParty.setLocked(false);
sender.sendMessage(LocaleLoader.getString("Party.Unlocked"));
}
private void sendUsageStrings(CommandSender sender) {
sender.sendMessage(LocaleLoader.getString("Commands.Usage.2", "party", "lock", "[on|off]"));
sender.sendMessage(LocaleLoader.getString("Commands.Usage.1", "party", "unlock"));
}
}