We should add xp lock, So if pures are pking with a whip etc, They dont gain defence, they can just do ::lock..
Open player.java and add this with your other public booleans;
Code:
public boolean expLock;
Now, Open client.java and search for this;
Code:
public boolean addSkillXP(int amount, int skill) {
Underneath;
Code:
public boolean addSkillXP(int amount, int skill) {
Add this;
Code:
if (expLock) {
return;
}
Now, Search where your commands are and add these commands;
Code:
if (command.equalsIgnoreCase("lock")) {
expLock = true;
sM("You have locked your xp.");
}
if (command.equalsIgnoreCase("unlock")) {
expLock = false;
sM("You have unlocked xp lock.");
}
Add it nao hoe

.