Old admin after promoting new one should becoleader instead of mod

This commit is contained in:
Trent Hensler 2018-03-26 20:09:34 -07:00
parent debaf3ad93
commit d2c4ccb57e
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ public class CmdAdmin extends FCommand {
// promote target player, and demote existing admin if one exists
if (admin != null) {
admin.setRole(Role.MODERATOR);
admin.setRole(Role.COLEADER);
}
fyou.setRole(Role.ADMIN);
msg(TL.COMMAND_ADMIN_PROMOTES, fyou.describeTo(fme, true));

View File

@ -833,7 +833,7 @@ public abstract class MemoryFaction implements Faction, EconomyParticipator {
Factions.getInstance().removeFaction(getId());
} else { // promote new faction admin
if (oldLeader != null) {
oldLeader.setRole(Role.NORMAL);
oldLeader.setRole(Role.COLEADER);
}
replacements.get(0).setRole(Role.ADMIN);
//TODO:TL