I would look into your "player.getLastServant().elapsed(1800000)" and see what it sets it to true.
Also your if checks at the bottom is seperate from your elapsed time above:
Code:
If(x) { //x == true send below
sends();
} else { //If x != true send this below!
sends();
}
if(y) { //If y == true send below
sends();
}
if(z) { //if z == true send below
sends();
}
I also advice to remove the two bottom if statement and just have the send message below } else { to send out minutes left by grabbing your timer and do correct math to it:
Code:
int minutes = formula;
player.getPacketSender().sendMessage("You can only teleport here every " + minutes + " minute" + (minutes == 1 ? "" : "s") + "!");