mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Add other usage string.
This commit is contained in:
parent
70f588cce1
commit
c822be4a53
@ -30,7 +30,7 @@ public class PartyLockCommand implements CommandExecutor {
|
|||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
if (!args[0].equalsIgnoreCase("lock")) {
|
if (!args[0].equalsIgnoreCase("lock")) {
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.Usage.2", "party", "lock", "[on|off]"));
|
sendUsageStrings(sender);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,13 +41,13 @@ public class PartyLockCommand implements CommandExecutor {
|
|||||||
unlockParty(sender, command);
|
unlockParty(sender, command);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.Usage.2", "party", "lock", "[on|off]"));
|
sendUsageStrings(sender);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.Usage.2", "party", "lock", "[on|off]"));
|
sendUsageStrings(sender);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -89,4 +89,9 @@ public class PartyLockCommand implements CommandExecutor {
|
|||||||
playerParty.setLocked(false);
|
playerParty.setLocked(false);
|
||||||
sender.sendMessage(LocaleLoader.getString("Party.Unlocked"));
|
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"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user