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.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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren