From 7eb32d3ea958820a6f47efc196f40be45c0b3099 Mon Sep 17 00:00:00 2001 From: snowleo Date: Mon, 4 Apr 2011 15:11:42 +0000 Subject: [PATCH] [trunk] Unlimited: fix unlimited.item-all permission git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1123 e251c2fe-e539-e718-e476-b85c1f46cddb --- .../src/com/earth2me/essentials/commands/Commandunlimited.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) &&