Actually use the bending.command.help node

This commit is contained in:
MistPhizzle 2014-08-07 12:07:51 -04:00
parent cd181a381b
commit 502f9269ba

View file

@ -885,6 +885,10 @@ public class Commands {
}
}
if (Arrays.asList(helpaliases).contains(args[0].toLowerCase())) {
if (!s.hasPermission("bending.command.help")) {
s.sendMessage(ChatColor.RED + "You don't have permission to do that.");
return true;
}
if (args.length != 2) {
s.sendMessage(ChatColor.GOLD + "Proper Usage: /bending help Command/Ability");
s.sendMessage(ChatColor.YELLOW + "/bending add <Player> [Element]");
@ -900,10 +904,6 @@ public class Commands {
s.sendMessage(ChatColor.YELLOW + "/bending who");
return true;
}
if (!s.hasPermission("bending.command.help")) {
s.sendMessage(ChatColor.RED + "You don't have permission to do that.");
return true;
}
if (Arrays.asList(importaliases).contains(args[1].toLowerCase())) {
s.sendMessage(ChatColor.GOLD + "Proper Usage: " + ChatColor.DARK_AQUA + "/bending import");
s.sendMessage(ChatColor.YELLOW + "This command will import your old bendingPlayers.yml from the Bending plugin."