mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-01-06 23:10:58 +00:00
Fix to show full commands
This commit is contained in:
parent
e1f986ae53
commit
d76e8af7a0
1 changed files with 8 additions and 2 deletions
|
@ -51,9 +51,15 @@ public class HelpCommand extends PKCommand {
|
|||
if (isNumeric(arg)) {
|
||||
List<String> strings = new ArrayList<String>();
|
||||
for (PKCommand command : instances.values()) {
|
||||
strings.add(command.getProperUse());
|
||||
if (!command.getName().equalsIgnoreCase("help")) {
|
||||
strings.add(command.getProperUse());
|
||||
}
|
||||
}
|
||||
for (String s : getPage(strings, ChatColor.GOLD + "Commands: <required> [optional]", Integer.valueOf(arg), true)) {
|
||||
Collections.sort(strings);
|
||||
Collections.reverse(strings);
|
||||
strings.add(instances.get("help").getProperUse());
|
||||
Collections.reverse(strings);
|
||||
for (String s : getPage(strings, ChatColor.GOLD + "Commands: <required> [optional]", Integer.valueOf(arg), false)) {
|
||||
sender.sendMessage(ChatColor.YELLOW + s);
|
||||
}
|
||||
} else if (instances.keySet().contains(arg.toLowerCase())) {//bending help command
|
||||
|
|
Loading…
Reference in a new issue