mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 01:27:40 +01:00
Fixed argument count for meta parsing.
This commit is contained in:
parent
c8212371ff
commit
63300866f9
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user