diff options
author | KHobbits <rob@khobbits.co.uk> | 2013-03-03 20:33:23 +0000 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2013-03-03 20:33:23 +0000 |
commit | d7588e61bc81ac71e4dbdefa8b0f6cadc30b5b79 (patch) | |
tree | 40f58d6cbcdbe891acea8c5e1d0e75a50d8d3dc8 | |
parent | b9285b2aebb581954b25e12ceaf35e6610bd6841 (diff) | |
download | Essentials-d7588e61bc81ac71e4dbdefa8b0f6cadc30b5b79.tar Essentials-d7588e61bc81ac71e4dbdefa8b0f6cadc30b5b79.tar.gz Essentials-d7588e61bc81ac71e4dbdefa8b0f6cadc30b5b79.tar.lz Essentials-d7588e61bc81ac71e4dbdefa8b0f6cadc30b5b79.tar.xz Essentials-d7588e61bc81ac71e4dbdefa8b0f6cadc30b5b79.zip |
[Fix] Unify item spawning permissions in /give
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandgive.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandgive.java b/Essentials/src/com/earth2me/essentials/commands/Commandgive.java index bd5d3c39b..f31a31829 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandgive.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandgive.java @@ -33,9 +33,9 @@ public class Commandgive extends EssentialsCommand final String itemname = stack.getType().toString().toLowerCase(Locale.ENGLISH).replace("_", ""); if (sender instanceof Player && (ess.getSettings().permissionBasedItemSpawn() - ? (!ess.getUser(sender).isAuthorized("essentials.give.item-all") - && !ess.getUser(sender).isAuthorized("essentials.give.item-" + itemname) - && !ess.getUser(sender).isAuthorized("essentials.give.item-" + stack.getTypeId())) + ? (!ess.getUser(sender).isAuthorized("essentials.itemspawn.item-all") + && !ess.getUser(sender).isAuthorized("essentials.itemspawn.item-" + itemname) + && !ess.getUser(sender).isAuthorized("essentials.itemspawn.item-" + stack.getTypeId())) : (!ess.getUser(sender).isAuthorized("essentials.itemspawn.exempt") && !ess.getUser(sender).canSpawnItem(stack.getTypeId())))) { |