mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 13:13:24 +00:00
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:
parent
0483635a5c
commit
d5c8d0c1bf
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue