mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-03 19:15:44 +00:00
/unlimited: Instead of 2, give the player a full stack
This commit is contained in:
parent
2067bb8f0d
commit
54559172c6
1 changed files with 2 additions and 1 deletions
|
@ -55,7 +55,8 @@ public class Commandunlimited extends EssentialsCommand
|
|||
return;
|
||||
}
|
||||
|
||||
ItemStack stack = ess.getItemDb().get(args[0], 2);
|
||||
final ItemStack stack = ess.getItemDb().get(args[0], 1);
|
||||
stack.setAmount(stack.getType().getMaxStackSize());
|
||||
|
||||
String itemname = stack.getType().toString().toLowerCase().replace("_", "");
|
||||
if (!user.isAuthorized("essentials.unlimited.item-all")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue