diff options
author | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-04-04 15:11:42 +0000 |
---|---|---|
committer | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-04-04 15:11:42 +0000 |
commit | 5f177b3b1eec7ab329586a8d7eb6f2c875240e3f (patch) | |
tree | 360caca2c700d3a430fc12173fe91ba52d0f9226 | |
parent | 076fedf6e4c55c4e7a0efdd39ec406fc17b3b6f6 (diff) | |
download | Essentials-5f177b3b1eec7ab329586a8d7eb6f2c875240e3f.tar Essentials-5f177b3b1eec7ab329586a8d7eb6f2c875240e3f.tar.gz Essentials-5f177b3b1eec7ab329586a8d7eb6f2c875240e3f.tar.lz Essentials-5f177b3b1eec7ab329586a8d7eb6f2c875240e3f.tar.xz Essentials-5f177b3b1eec7ab329586a8d7eb6f2c875240e3f.zip |
[trunk] Unlimited: fix unlimited.item-all permission
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1123 e251c2fe-e539-e718-e476-b85c1f46cddb
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java b/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java index 9fd47e6bf..8026b9d60 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java @@ -51,7 +51,7 @@ public class Commandunlimited extends EssentialsCommand ItemStack stack = ItemDb.get(args[0], 1); String itemname = stack.getType().toString().toLowerCase().replace("_", ""); - if (!user.isAuthorized("essentials.unlimited.item-add") && + if (!user.isAuthorized("essentials.unlimited.item-all") && !user.isAuthorized("essentials.unlimited.item-"+itemname) && !user.isAuthorized("essentials.unlimited.item-"+stack.getTypeId()) && !((stack.getType() == Material.WATER_BUCKET || stack.getType() == Material.LAVA_BUCKET) && |