mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 19:50:37 +00:00
bending help displays commands you have perms for
This commit is contained in:
parent
d1f26305fc
commit
d6d2bfa6ad
1 changed files with 34 additions and 20 deletions
|
@ -88,9 +88,9 @@ public class Commands {
|
|||
@Override
|
||||
public boolean onCommand(CommandSender s, Command c, String label, String[] args) {
|
||||
for(int i = 0; i < args.length; i++){
|
||||
args[i] = args[i].toLowerCase();
|
||||
}
|
||||
if (args.length == 0) {
|
||||
args[i] = args[i].toLowerCase();
|
||||
}
|
||||
if (args.length == 0) {
|
||||
s.sendMessage(ChatColor.RED + "/bending help [Ability/Command] " + ChatColor.YELLOW + "Display help.");
|
||||
s.sendMessage(ChatColor.RED + "/bending choose [Element] " + ChatColor.YELLOW + "Choose an element.");
|
||||
s.sendMessage(ChatColor.RED + "/bending bind [Ability] # " + ChatColor.YELLOW + "Bind an ability.");
|
||||
|
@ -1160,19 +1160,33 @@ public class Commands {
|
|||
}
|
||||
if (args.length != 2) {
|
||||
s.sendMessage(ChatColor.GOLD + "Proper Usage: /bending help Command/Ability");
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending add <Player> [Element]");
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending bind [Ability] <Slot>");
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending clear <slot>");
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending choose <Player> [Element]");
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending display <Element>");
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending import");
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending permaremove <Player>");
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending remove [Player]");
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending toggle");
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending version");
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending who");
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending give [Player] [Item] <Properties>");
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending invincible");
|
||||
if (s.hasPermission("bending.command.add")) {
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending add <Player> [Element]");
|
||||
}
|
||||
if (s.hasPermission("bending.command.bind"))
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending bind [Ability] <Slot>");
|
||||
if (s.hasPermission("bending.command.clear"))
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending clear <slot>");
|
||||
if (s.hasPermission("bending.command.choose"))
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending choose <Player> [Element]");
|
||||
if (s.hasPermission("bending.command.display"))
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending display <Element>");
|
||||
if (s.hasPermission("bending.command.import"))
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending import");
|
||||
if (s.hasPermission("bending.admin.permaremove"))
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending permaremove <Player>");
|
||||
if (s.hasPermission("bending.admin.remove"))
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending remove [Player]");
|
||||
if (s.hasPermission("bending.command.toggle"))
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending toggle");
|
||||
if (s.hasPermission("bending.command.version"))
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending version");
|
||||
if (s.hasPermission("bending.command.who"))
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending who");
|
||||
if (s.hasPermission("bending.command.give"))
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending give [Player] [Item] <Properties>");
|
||||
if (s.hasPermission("bending.command.invincible"))
|
||||
s.sendMessage(ChatColor.YELLOW + "/bending invincible");
|
||||
return true;
|
||||
}
|
||||
if (Arrays.asList(airaliases).contains(args[1].toLowerCase())) {
|
||||
|
|
Loading…
Reference in a new issue