Fix rankup and prestige events

This commit is contained in:
okx-code
2020-12-24 15:28:18 +00:00
parent bfb2b668f2
commit 519f0bb2e2
5 changed files with 13 additions and 5 deletions
@@ -131,7 +131,7 @@ public class InfoCommand implements TabExecutor {
}
Rank currentRank = currentRankElement.getRank();
if (plugin.getRankups().getFirst().equals(currentRank)) {
if (currentRankElement.isRootNode()) {
sender.sendMessage(ChatColor.YELLOW + "That player is in the first rank and cannot be ranked down.");
return true;
}