mirror of
https://github.com/MassiveCraft/Factions.git
synced 2025-02-21 22:31:49 +01:00
Old admin after promoting new one should becoleader instead of mod
This commit is contained in:
parent
debaf3ad93
commit
d2c4ccb57e
@ -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));
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user