add autorankup

This commit is contained in:
okx-code
2018-11-04 20:11:24 +00:00
parent 51a7261bd6
commit d3b830c603
5 changed files with 26 additions and 8 deletions
+6 -4
View File
@@ -12,10 +12,12 @@ public class AutoRankup extends BukkitRunnable {
@Override
public void run() {
for (Player player : Bukkit.getOnlinePlayers()) {
if (rankup.checkRankup(player, false)) {
rankup.rankup(player);
} else if (rankup.getPrestiges() != null && rankup.checkPrestige(player, false)) {
rankup.prestige(player);
if(player.hasPermission("rankup.auto")) {
if (rankup.checkRankup(player, false)) {
rankup.rankup(player);
} else if (rankup.getPrestiges() != null && rankup.checkPrestige(player, false)) {
rankup.prestige(player);
}
}
}
}