diff options
author | snowleo <schneeleo@gmail.com> | 2011-07-21 02:58:20 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-07-21 02:58:20 +0200 |
commit | 54559172c628632e8e26a911949d1dd0370d3331 (patch) | |
tree | 02e4f54cfe473fbf4c14958a40676d10e076656a | |
parent | 2067bb8f0d692f7add2ce9b0f775374c0d83bd8c (diff) | |
download | Essentials-54559172c628632e8e26a911949d1dd0370d3331.tar Essentials-54559172c628632e8e26a911949d1dd0370d3331.tar.gz Essentials-54559172c628632e8e26a911949d1dd0370d3331.tar.lz Essentials-54559172c628632e8e26a911949d1dd0370d3331.tar.xz Essentials-54559172c628632e8e26a911949d1dd0370d3331.zip |
/unlimited: Instead of 2, give the player a full stack
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java b/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java index 7eb1e8f9d..cc8c7e128 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java @@ -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") |