From d64621161369d7755d830dccb3872180e9f43caf Mon Sep 17 00:00:00 2001 From: Riaku Date: Thu, 4 Apr 2013 12:18:22 -0500 Subject: adding new permission node: essentials.repair.all --- Essentials/src/net/ess3/commands/Commandrepair.java | 2 +- Essentials/src/net/ess3/permissions/Permissions.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Essentials/src/net/ess3/commands/Commandrepair.java b/Essentials/src/net/ess3/commands/Commandrepair.java index 54293aef4..a5fc2f04a 100644 --- a/Essentials/src/net/ess3/commands/Commandrepair.java +++ b/Essentials/src/net/ess3/commands/Commandrepair.java @@ -47,7 +47,7 @@ public class Commandrepair extends EssentialsCommand 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); charge.isAffordableFor(user); diff --git a/Essentials/src/net/ess3/permissions/Permissions.java b/Essentials/src/net/ess3/permissions/Permissions.java index aeea976ae..2ae61391f 100644 --- a/Essentials/src/net/ess3/permissions/Permissions.java +++ b/Essentials/src/net/ess3/permissions/Permissions.java @@ -84,6 +84,7 @@ public enum Permissions implements IPermission POWERTOOL_APPEND, PTIME_OTHERS, PVPDELAY_EXEMPT, + REPAIR_ALL, REPAIR_ARMOR, REPAIR_ENCHANTED, SEEN_BANREASON, -- cgit v1.2.3