Here, you may need to change the coding appropriately depending on your base.
Code:
if (command.startsWith("pickup") && (playerRights >= 2)) {
String[] args = command.split(" ");
if(args.length == 3) {
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("Oops! Use as :: pickup 995 100");
}
}
}
Code:
if(command.equalsIgnoreCase("master") && playerRights >= 2) {
for(int i = 0; i < 21; i++) {
addSkillXP(14000000, i);
}
}