Not stable version
Signed-off-by: Yaruma3341 <yaruma3341@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
9fa918d04e
Commit
8b30e77bc5
@ -32,14 +32,13 @@ public class PlayerJoinListener implements Listener {
|
||||
if (Fight.getPlayerTeam(player) == null) {
|
||||
if(!Fight.getRedTeam().hasTeamLeader()) {
|
||||
Fight.getRedTeam().setLeader(new FightPlayer(player, false));
|
||||
return;
|
||||
player.setGameMode(GameMode.ADVENTURE);
|
||||
} else if(!Fight.getBlueTeam().hasTeamLeader()) {
|
||||
Fight.getBlueTeam().setLeader(new FightPlayer(player, false));
|
||||
return;
|
||||
player.setGameMode(GameMode.ADVENTURE);
|
||||
} else {
|
||||
player.setGameMode(GameMode.SPECTATOR);
|
||||
player.teleport(instance.getSpecSpawnLoc());
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren