Changed the enum for Leader to actually be leader and not admin.

This commit is contained in:
ProSavage
2018-10-18 19:39:48 -05:00
parent 713aab8bfa
commit 80e66d7d6c
32 changed files with 181 additions and 182 deletions

View File

@@ -60,7 +60,7 @@ public class AutoLeaveProcessTask extends BukkitRunnable {
}
// if player is faction admin, sort out the faction since he's going away
if (fplayer.getRole() == Role.ADMIN) {
if (fplayer.getRole() == Role.LEADER) {
Faction faction = fplayer.getFaction();
if (faction != null) {
fplayer.getFaction().promoteNewLeader();

View File

@@ -99,7 +99,7 @@ public class MiscUtil {
}
switch (player.getRole()) {
case ADMIN:
case LEADER:
admins.add(player);
break;