mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 20:00:46 +00:00
Don't give out a full stack on /unlimited, instead either 2 or 1, if the max stack size is 1
This commit is contained in:
parent
40a2bccf2d
commit
7001798874
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ public class Commandunlimited extends EssentialsCommand
|
|||
}
|
||||
|
||||
final ItemStack stack = ess.getItemDb().get(args[0], 1);
|
||||
stack.setAmount(stack.getType().getMaxStackSize());
|
||||
stack.setAmount(Math.min(stack.getType().getMaxStackSize(), 2));
|
||||
|
||||
String itemname = stack.getType().toString().toLowerCase().replace("_", "");
|
||||
if (!user.isAuthorized("essentials.unlimited.item-all")
|
||||
|
|
Loading…
Reference in a new issue