1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-13 18:14:38 +02:00

Fixed argument count for meta parsing.

This commit is contained in:
KHobbits
2014-02-02 18:56:45 +00:00
parent c8212371ff
commit 63300866f9

View File

@@ -78,7 +78,12 @@ public class Commandgive extends EssentialsCommand
allowUnsafe = false; 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(); stack = metaStack.getItemStack();
} }