Code:
if (playerCommand.startsWith("item") && c.playerRights >= 0) {
try {
String[] args = playerCommand.split(" ");
if (args.length == 3) {
int [] unspawnAbles = {10548,6570,11694,11695,11696,11697,11700,11701,11698,11699,11730,11731,15001,11720,11721,11722,11718,11729,11724,11725,11726,11727,11283,11282,15018,15019,15020,15220,13736,13734,11663,11664,11665,8842,8839,8840,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,14484,15037,15038,15039};
int newItemID = Integer.parseInt(args[1]);
int newItemAmount = Integer.parseInt(args[2]);
int req = c.getShops().getItemShopValue(newItemID) * newItemAmount;
for (int j = 0; j < unspawnAbles.length; j++) {
if (newItemID == unspawnAbles[j]){
c.sendMessage(""+server.model.items.Item.getItemName(newItemID)+" is a restricted item.");
return;
} else {
c.sendMessage("Use as ::item 995 200 for example 200 gp");
}
} catch(Exception e) {
}
}
and i got this error: