Adjust how we get the usage strings for the /skillname commands

This commit is contained in:
GJ
2013-02-05 08:50:47 -05:00
parent 03f96daba3
commit 0de7e22408
3 changed files with 41 additions and 30 deletions

View File

@ -59,6 +59,8 @@ public final class CommandRegistrationHelper {
command.setDescription(LocaleLoader.getString("Commands.Description.Skill", Misc.getCapitalized(localizedName)));
command.setPermission("mcmmo.commands." + commandName);
command.setPermissionMessage(permissionsMessage);
command.setUsage(LocaleLoader.getString("Commands.Usage.0", localizedName));
command.setUsage(command.getUsage() + "\n" + LocaleLoader.getString("Commands.Usage.2", localizedName, "?", "[" + LocaleLoader.getString("Commands.Usage.Page") + "]"));
switch (skill) {
case ACROBATICS: