summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2011-07-20 08:15:40 -0700
committerKHobbits <rob@khobbits.co.uk>2011-07-20 08:15:40 -0700
commitf522e31909792b55a6c4661063eb6d5d99b580e3 (patch)
treedbd3a4d3ccbc29c40a12482db5d1db5b849d966b /Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java
parentd8aef06f46400692021e943d111eaf5d04bf3072 (diff)
downloadEssentials-f522e31909792b55a6c4661063eb6d5d99b580e3.tar
Essentials-f522e31909792b55a6c4661063eb6d5d99b580e3.tar.gz
Essentials-f522e31909792b55a6c4661063eb6d5d99b580e3.tar.lz
Essentials-f522e31909792b55a6c4661063eb6d5d99b580e3.tar.xz
Essentials-f522e31909792b55a6c4661063eb6d5d99b580e3.zip
Not sure how well this would work, but its probably worth giving the user at least two of the item to combat client lag, if you try and build something with unlimited, but you only have 1 item, client lag prevents you from doing so quickly, because you need to wait for the server to give you back the item.
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java')
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java2
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 cc519113c..7eb1e8f9d 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java
@@ -55,7 +55,7 @@ public class Commandunlimited extends EssentialsCommand
return;
}
- ItemStack stack = ess.getItemDb().get(args[0], 1);
+ ItemStack stack = ess.getItemDb().get(args[0], 2);
String itemname = stack.getType().toString().toLowerCase().replace("_", "");
if (!user.isAuthorized("essentials.unlimited.item-all")