if (command.equalsIgnoreCase("disk")) {
if (playerHasItem(995, 100000)) {//this was missing
deleteItem(995, 100000);
addItem(981, 1);
sM("you bought Disk Of Returning.");
} else {
sM("You need 100k to buy Disk Of Returning.");
}
}//this also
another fail to use correct brackets
there was no { after the if (playerHasItem(995, 100000)) so i'm surprised it even compiled?