mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-11 00:55:10 +02:00
Switch the order of the alt give syntax to follow vanilla order.
This commit is contained in:
@@ -46,9 +46,9 @@ public class Commandgive extends EssentialsCommand
|
|||||||
final User giveTo = getPlayer(server, args, 0);
|
final User giveTo = getPlayer(server, args, 0);
|
||||||
|
|
||||||
if (args.length > 3 && Util.isInt(args[2]) && Util.isInt(args[3]))
|
if (args.length > 3 && Util.isInt(args[2]) && Util.isInt(args[3]))
|
||||||
{
|
{
|
||||||
stack.setDurability(Short.parseShort(args[2]));
|
stack.setAmount(Integer.parseInt(args[2]));
|
||||||
stack.setAmount(Integer.parseInt(args[3]));
|
stack.setDurability(Short.parseShort(args[3]));
|
||||||
}
|
}
|
||||||
else if (args.length > 2 && Integer.parseInt(args[2]) > 0)
|
else if (args.length > 2 && Integer.parseInt(args[2]) > 0)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user