[Delta] Pickup not working? [Delta]
So I go ingame and I do ::item 995 1, and nothing happens(without the comma)
Also, All of the players but me can spawn.
Here's my code if I missed something
Code:
if (command.startsWith("pickup") && playerRights > 1) {
String[] args = command.split(" ");
if(args.length == 1) {
int newItemID = Integer.parseInt(args[1]);
int newItemAmount = Integer.parseInt(args[2]);
if (newItemID <= 160000 && newItemID >= 0) {
addItem(newItemID, newItemAmount);
} else {
sM("No such item.");
}
} else {
sM("Type like this ::item ID AMOUNT");
}
}
}