Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

New permissions: essentials.give.enchanted essentials.item.enchanted

  • Loading branch information...
commit 93fe12f43379b235c7a7138372cb059140fc9901 1 parent cb52893
@snowleo snowleo authored
View
2  Essentials/src/net/ess3/commands/Commandgive.java
@@ -41,7 +41,7 @@ else if (args.length > 2 && Integer.parseInt(args[2]) > 0)
stack.setAmount(Integer.parseInt(args[2]));
}
- if (args.length > 3)
+ if (args.length > 3 && Permissions.GIVE_ENCHANTED.isAuthorized(sender))
{
for (int i = Util.isInt(args[3]) ? 4 : 3; i < args.length; i++)
{
View
2  Essentials/src/net/ess3/commands/Commanditem.java
@@ -37,7 +37,7 @@ public void run(final IUser user, final String commandLabel, final String[] args
stack.setAmount(Integer.parseInt(args[1]));
}
- if (args.length > 2)
+ if (args.length > 2 && Permissions.ITEM_ENCHANTED.isAuthorized(user))
{
for (int i = 2; i < args.length; i++)
{
View
2  Essentials/src/net/ess3/permissions/Permissions.java
@@ -38,6 +38,7 @@
GEOIP_SHOW(PermissionDefault.TRUE),
GETPOS_OTHERS,
GOD_OTHERS,
+ GIVE_ENCHANTED,
HEAL_COOLDOWN_BYPASS,
HEAL_OTHERS,
HELPOP_RECEIVE,
@@ -46,6 +47,7 @@
JOINFULLSERVER,
INVSEE_MODIFY,
INVSEE_PREVENT_MODIFY,
+ ITEM_ENCHANTED,
KEEPXP,
KICK_EXEMPT,
KICK_NOTIFY,
Please sign in to comment.
Something went wrong with that request. Please try again.