SteamWar/FightSystem
Archiviert
13
1

Not stable version

Signed-off-by: Yaruma3341 <yaruma3341@gmail.com>
Dieser Commit ist enthalten in:
Yaruma3341 2019-02-23 12:00:21 +01:00
Ursprung 9fa918d04e
Commit 8b30e77bc5
2 geänderte Dateien mit 3 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -32,14 +32,13 @@ public class PlayerJoinListener implements Listener {
if (Fight.getPlayerTeam(player) == null) { if (Fight.getPlayerTeam(player) == null) {
if(!Fight.getRedTeam().hasTeamLeader()) { if(!Fight.getRedTeam().hasTeamLeader()) {
Fight.getRedTeam().setLeader(new FightPlayer(player, false)); Fight.getRedTeam().setLeader(new FightPlayer(player, false));
return; player.setGameMode(GameMode.ADVENTURE);
} else if(!Fight.getBlueTeam().hasTeamLeader()) { } else if(!Fight.getBlueTeam().hasTeamLeader()) {
Fight.getBlueTeam().setLeader(new FightPlayer(player, false)); Fight.getBlueTeam().setLeader(new FightPlayer(player, false));
return; player.setGameMode(GameMode.ADVENTURE);
} else { } else {
player.setGameMode(GameMode.SPECTATOR); player.setGameMode(GameMode.SPECTATOR);
player.teleport(instance.getSpecSpawnLoc()); player.teleport(instance.getSpecSpawnLoc());
return;
} }
} }