mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-01-08 07:57:16 +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)) {
|
if (isNumeric(arg)) {
|
||||||
List<String> strings = new ArrayList<String>();
|
List<String> strings = new ArrayList<String>();
|
||||||
for (PKCommand command : instances.values()) {
|
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);
|
sender.sendMessage(ChatColor.YELLOW + s);
|
||||||
}
|
}
|
||||||
} else if (instances.keySet().contains(arg.toLowerCase())) {//bending help command
|
} else if (instances.keySet().contains(arg.toLowerCase())) {//bending help command
|
||||||
|
|
Loading…
Reference in a new issue