mirror of
https://github.com/essentials/Essentials.git
synced 2025-02-24 16:32:35 +01:00
/unlimited: Instead of 2, give the player a full stack
This commit is contained in:
parent
a9b0537b92
commit
1375b4985d
@ -55,7 +55,8 @@ public class Commandunlimited extends EssentialsCommand
|
|||||||
return;
|
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("_", "");
|
String itemname = stack.getType().toString().toLowerCase().replace("_", "");
|
||||||
if (!user.isAuthorized("essentials.unlimited.item-all")
|
if (!user.isAuthorized("essentials.unlimited.item-all")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user