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;
}
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();
}