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:
@@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user