SteamWar/FightSystem
Archiviert
13
1

Fix Kampfleiter join
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2022-03-05 13:57:38 +01:00
Ursprung e468feb1fc
Commit 4db0426ae9

Datei anzeigen

@ -60,6 +60,11 @@ public class EventJoin implements Listener {
Player player = event.getPlayer();
SteamwarUser user = SteamwarUser.get(player.getUniqueId());
if(user.getId() == FightSystem.getEventFight().getKampfleiter()){
FightSystem.setEventLeiter(player);
return;
}
if(FightState.Setup.contains(FightState.getFightState())){
FightTeam team = null;
if(user.getTeam() == Config.EventTeamBlueID)
@ -85,10 +90,6 @@ public class EventJoin implements Listener {
}
}
if(user.getId() == FightSystem.getEventFight().getKampfleiter()){
FightSystem.setEventLeiter(player);
return;
}
if(Config.LiveReplay)
player.kickPlayer(FightSystem.getMessage().parse("NO_PARTICIPANT", player));
}