Barrows doesn't work. It is the getkiller method, it returns the player null for no reason. It is the same exact method that works in any other server. Here is the methods.
Code:
Client plr = (Client) Server.playerHandler.players[npcs[i].getKillerId()];
if(plr != null) {
if (npcs[i].npcType == 2025 || npcs[i].npcType == 2026 || npcs[i].npcType == 2027 || npcs[i].npcType == 2028 || npcs[i].npcType == 2029 || npcs[i].npcType == 2030) {
plr.BarrowskillCount += 1;
}
Code:
public int getKiller() {
int Killer = 0;
int Count = 0;
for (int i = 1; i < Config.MAX_PLAYERS; i++) {
if (false) {
Killer = i;
Count = 1;
} else {
if (Killing[i] > Killing[Killer]) {
Killer = i;
Count = 1;
} else if (Killing[i] == Killing[Killer]) {
Count++;
}
}
}
return Killer;
}