Alright, Well I made a rank named 'defiance' and it's not working I'm not sure what I did wrong here's what I've did.
In Player.java:
Code:
public int defiance = 0;
In Client.java:
Code:
} else if (token.equals("character-defiance")) {
defiance = Integer.parseInt(token2);
characterfile.newLine();
characterfile.write("character-defiance = ", 0, 21);
characterfile.write(Integer.toString(defiance), 0, Integer.toString(defiance).length());
characterfile.newLine();
if(defiance == 1){
sM("Welcome back to Project Defiancy, "+playerName+".");
sM("Thanks for donating, to Project Defiancy. We appreciate it!");
sM("Unfortunately, Don't expect much in BETA, but expect more soon.");
sM("The Home will be eventually changed to Varrock.");
sM("Only 1 NPC has drops (Men) Drops have been deleted and will be remade.");
}
if (command.startsWith("food") && defiance == 1 && !inCombat) {
addItem(385, 40);
sM("You recieve 40 sharks.");
}
if (command.startsWith("darea") && defiance == 1 && !inCombat) {
addItem(379, 20);
triggerTele(2827, 2995, 0);
sM("You teleport to the Defiance Area.");
}
if (defiance == 1) {
titles = "[Defiance] ";
}
Theirs everything I've added, the commands don't work the Welcome message doesn't show, Everything's right, but what's wrong? Lol :\.