update to 3.1.1

now sends a messsage when a player is at the last prestige and last rank and trying to rank up
fix playtime minutes requirement
This commit is contained in:
okx-code
2018-09-29 10:10:42 +01:00
parent f8ede913ef
commit 6cafe7940b
5 changed files with 11 additions and 3 deletions
+3 -1
View File
@@ -302,7 +302,9 @@ public class Rankup extends JavaPlugin {
if(prestiges != null) {
Prestige prestige = prestiges.getByPlayer(player);
if(prestige.isLast()) {
getMessage(rank, Message.NO_RANKUP);
getMessage(rank, Message.NO_RANKUP)
.replaceRanks(player, prestige)
.send(player);
}
}
getMessage(rank, prestiges == null ? Message.NO_RANKUP : prestiges.getByPlayer(player).isLast() ? Message.NO_RANKUP : Message.MUST_PRESTIGE)