Iterator Fix in Fly to avoid concurrent exceptions

1.12 particle support
This commit is contained in:
Naman
2018-03-31 11:46:37 -05:00
parent e14af238bf
commit 21587db74d
9 changed files with 2212 additions and 19 deletions

View File

@@ -66,6 +66,11 @@ public class CmdAdmin extends FCommand {
FPlayer admin = targetFaction.getFPlayerAdmin();
if (fyou == admin && fyou.getFaction().getSize() == 1) {
msg(TL.COMMAND_ADMIN_NOMEMBERS);
return;
}
// if target player is currently admin, demote and replace him
if (fyou == admin) {
targetFaction.promoteNewLeader();