diff options
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandgive.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandgive.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandgive.java b/Essentials/src/com/earth2me/essentials/commands/Commandgive.java index 54c5a0afb..8c1d57a48 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandgive.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandgive.java @@ -78,7 +78,12 @@ public class Commandgive extends EssentialsCommand allowUnsafe = false; } - metaStack.parseStringMeta(sender, allowUnsafe, args, NumberUtil.isInt(args[3]) ? 4 : 3, ess); + int metaStart = NumberUtil.isInt(args[3]) ? 4 : 3; + + if (args.length > metaStart) + { + metaStack.parseStringMeta(sender, allowUnsafe, args, metaStart, ess); + } stack = metaStack.getItemStack(); } |