Merge pull request #15 from khobbits/patch-3

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.
This commit is contained in:
snowleo 2011-07-20 16:44:51 -07:00
commit ed29f29622

View File

@ -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")