1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-20 05:21:21 +02:00

adding new permission node:

essentials.repair.all
This commit is contained in:
Riaku
2013-04-04 12:18:22 -05:00
parent d20aa0504e
commit d646211613
2 changed files with 2 additions and 1 deletions

View File

@@ -47,7 +47,7 @@ public class Commandrepair extends EssentialsCommand
user.sendMessage(_("repair", itemName.replace('_', ' '))); user.sendMessage(_("repair", itemName.replace('_', ' ')));
} }
else if (args[0].equalsIgnoreCase("all")) else if (args[0].equalsIgnoreCase("all") && Permissions.REPAIR_ALL.isAuthorized(user))
{ {
final Trade charge = new Trade("repair-all", ess); final Trade charge = new Trade("repair-all", ess);
charge.isAffordableFor(user); charge.isAffordableFor(user);

View File

@@ -84,6 +84,7 @@ public enum Permissions implements IPermission
POWERTOOL_APPEND, POWERTOOL_APPEND,
PTIME_OTHERS, PTIME_OTHERS,
PVPDELAY_EXEMPT, PVPDELAY_EXEMPT,
REPAIR_ALL,
REPAIR_ARMOR, REPAIR_ARMOR,
REPAIR_ENCHANTED, REPAIR_ENCHANTED,
SEEN_BANREASON, SEEN_BANREASON,