mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-02 17:09:58 +01:00
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:
commit
ed29f29622
@ -55,7 +55,7 @@ public class Commandunlimited extends EssentialsCommand
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ItemStack stack = ess.getItemDb().get(args[0], 1);
|
ItemStack stack = ess.getItemDb().get(args[0], 2);
|
||||||
|
|
||||||
String itemname = stack.getType().toString().toLowerCase().replace("_", "");
|
String itemname = stack.getType().toString().toLowerCase().replace("_", "");
|
||||||
if (!user.isAuthorized("essentials.unlimited.item-all")
|
if (!user.isAuthorized("essentials.unlimited.item-all")
|
||||||
|
Loading…
Reference in New Issue
Block a user