I have added a pk point system and I have tried making the death of another player give the killer a point but it spams the chat box with the first message and spams the command prompt with errors
Code:
lp.sendMessage(player.randomDeath() + "<col=ff0000>" + player.getUsername() + "</col>!");
player.sendMessage("You were killed by " + lp.getUsername());
settings.pkPoints = (settings.pkPoints + 1);
lp.sendMessage("You have " + player.getPkPoints() + ".");
When I remove these 2 things it doesn't spam or give errors
Code:
settings.pkPoints = (settings.pkPoints + 1);
lp.sendMessage("You have " + player.getPkPoints() + ".");
What do you think is wrong?