Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
e468feb1fc
Commit
4db0426ae9
@ -60,6 +60,11 @@ public class EventJoin implements Listener {
|
|||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
SteamwarUser user = SteamwarUser.get(player.getUniqueId());
|
SteamwarUser user = SteamwarUser.get(player.getUniqueId());
|
||||||
|
|
||||||
|
if(user.getId() == FightSystem.getEventFight().getKampfleiter()){
|
||||||
|
FightSystem.setEventLeiter(player);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(FightState.Setup.contains(FightState.getFightState())){
|
if(FightState.Setup.contains(FightState.getFightState())){
|
||||||
FightTeam team = null;
|
FightTeam team = null;
|
||||||
if(user.getTeam() == Config.EventTeamBlueID)
|
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)
|
if(Config.LiveReplay)
|
||||||
player.kickPlayer(FightSystem.getMessage().parse("NO_PARTICIPANT", player));
|
player.kickPlayer(FightSystem.getMessage().parse("NO_PARTICIPANT", player));
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren