mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-27 17:09:43 +00:00
Fixed argument count for meta parsing.
This commit is contained in:
parent
c8212371ff
commit
63300866f9
1 changed files with 6 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue