Hello --
So currently I have a ::ResetTask Command that resets your current slayer task.
I made it so that, when you Reset your task you lose 25 slayer points. However, if you reset your task with less than 25 points it goes into the negatives, and if you reset it again it won't go any farther negative.
I need the command to send a message such as "You don't have enough Slayer Points to do that" if you have less than 25 points. This is what I currently have, I have been playing around a lot with it:
Code:
if (playerCommand.startsWith("resettask")) {
if (c.SPoints == 0);
c.sendMessage ("You do not have any Slayer Points to do that!");
} else {
if (c.SPoints == 25);
c.sendMessage("Your Slayer Task has been Reset. Talk to Kuradel for a new one!");
c.SPoints = -25;
c.sendMessage("Resetting your task cost you 25 Slayer Points!");
c.taskAmount = -1;
c.slayerTask = 0;
}