You need to add:
Code:
c.getItems().playerHasItem
In front of all of these.
Code:
|| (14877, 1) || (14878, 1) || (14879, 1) || (14880, 1) || (14881, 1))
Here
Code:
|| c.getItems().playerHasItem(14877, 1) || c.getItems().playerHasItem(14878, 1) || c.getItems().playerHasItem(14879, 1) || c.getItems().playerHasItem(14880, 1) || c.getItems().playerHasItem(14881, 1))
Or you could do this
Code:
public static int ITEMS[] = {ID1, ID2, ECT};
Code:
for(int i = 0; i < ITEMS.length; i++) {
if(ITEMS[i] == ITEMS) {
sendMessage("YOU HAVE AN ITEM!");
}
}
return false;
}