mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-09-11 04:39:32 +00:00
Actually use the bending.command.help node
This commit is contained in:
parent
cd181a381b
commit
502f9269ba
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue