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:
@@ -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);
|
||||||
|
@@ -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,
|
||||||
|
Reference in New Issue
Block a user