Alts Can No Longer Be Promoted

This commit is contained in:
Driftay
2020-05-25 14:16:49 -04:00
parent 6f293dce17
commit 7f927189ea
6 changed files with 83 additions and 69 deletions

View File

@@ -57,6 +57,10 @@ public class CmdAdmin extends FCommand {
return;
}
if(fyou.isAlt()){
return;
}
// only perform a FPlayerJoinEvent when newLeader isn't actually in the faction
if (fyou.getFaction() != targetFaction) {
FPlayerJoinEvent event = new FPlayerJoinEvent(FPlayers.getInstance().getByPlayer(context.player), targetFaction, FPlayerJoinEvent.PlayerJoinReason.LEADER);