SteamWar/FightSystem
Archiviert
13
1

Splitting Setup #94

Zusammengeführt
Lixfel hat 11 Commits von setupSplitting nach master 2020-01-12 16:57:30 +01:00 zusammengeführt
Nur Änderungen aus Commit b9bf52cc5f werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -23,10 +23,10 @@ public class NormalJoinListener extends BasicListener {
FightTeam fightTeam = Fight.getPlayerTeam(player);
if (fightTeam == null) {
if(Fight.getRedTeam().canbeLeader(player)) {
Fight.getRedTeam().setLeader(Fight.getRedTeam().addMember(player));
} else if(Fight.getBlueTeam().canbeLeader(player)) {
if(!player.getUniqueId().equals(Config.RedLeader) && Fight.getBlueTeam().canbeLeader(player)) {
Fight.getBlueTeam().setLeader(Fight.getBlueTeam().addMember(player));
}else if(Fight.getRedTeam().canbeLeader(player)) {
Fight.getRedTeam().setLeader(Fight.getRedTeam().addMember(player));
}
}