update to 3.1.4

This commit is contained in:
okx-code
2018-10-12 18:01:15 +01:00
parent ae52d94fe8
commit 3bcd8ae455
5 changed files with 30 additions and 21 deletions
@@ -32,10 +32,11 @@ public class RankupCommand implements CommandExecutor {
Rankups rankups = plugin.getRankups();
Rank rank = rankups.getByPlayer(player);
Rank next = rankups.next(rank);
if (!plugin.checkRankup(player)) {
return true;
} else if(next == null) {
}
Rank next = rankups.next(rank);
if(next == null) {
plugin.getLogger().severe("Rankup from " + rank.getName() + " to " + rank.getNext() +
" is defined but " + rank.getNext() + " does not exist.");
plugin.getMessage(Message.INVALID_RANKUP).failIfEmpty().send(player);