mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-19 13:01:20 +02:00
adding new permission node:
essentials.repair.all
This commit is contained in:
@@ -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);
|
||||
|
@@ -84,6 +84,7 @@ public enum Permissions implements IPermission
|
||||
POWERTOOL_APPEND,
|
||||
PTIME_OTHERS,
|
||||
PVPDELAY_EXEMPT,
|
||||
REPAIR_ALL,
|
||||
REPAIR_ARMOR,
|
||||
REPAIR_ENCHANTED,
|
||||
SEEN_BANREASON,
|
||||
|
Reference in New Issue
Block a user