summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRiaku <riaku56@gmail.com>2013-04-04 12:18:22 -0500
committerRiaku <riaku56@gmail.com>2013-04-04 12:18:22 -0500
commitd64621161369d7755d830dccb3872180e9f43caf (patch)
tree028c0f05610fe8938ecff5241711a0370c74854d
parentd20aa0504ef13fef52d60caa91f131dc9de760d2 (diff)
downloadEssentials-d64621161369d7755d830dccb3872180e9f43caf.tar
Essentials-d64621161369d7755d830dccb3872180e9f43caf.tar.gz
Essentials-d64621161369d7755d830dccb3872180e9f43caf.tar.lz
Essentials-d64621161369d7755d830dccb3872180e9f43caf.tar.xz
Essentials-d64621161369d7755d830dccb3872180e9f43caf.zip
adding new permission node:
essentials.repair.all
-rw-r--r--Essentials/src/net/ess3/commands/Commandrepair.java2
-rw-r--r--Essentials/src/net/ess3/permissions/Permissions.java1
2 files changed, 2 insertions, 1 deletions
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,