Changed the enum for Leader to actually be leader and not admin.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -99,7 +99,7 @@ public class MiscUtil {
|
||||
}
|
||||
|
||||
switch (player.getRole()) {
|
||||
case ADMIN:
|
||||
case LEADER:
|
||||
admins.add(player);
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user