SteamWar/MissileWars
Archiviert
13
0

Hotfix ConnectionListener for player join after round finish

Dieser Commit ist enthalten in:
yoyosource 2021-05-09 11:29:58 +02:00
Ursprung 3596bfc263
Commit 9b3abd29c8

Datei anzeigen

@ -40,6 +40,7 @@ public class ConnectionListener extends BasicListener{
public void onJoin(PlayerJoinEvent e) { public void onJoin(PlayerJoinEvent e) {
e.getPlayer().setDisplayName("§7" + e.getPlayer().getName()); e.getPlayer().setDisplayName("§7" + e.getPlayer().getName());
e.getPlayer().setGameMode(GameMode.SPECTATOR); e.getPlayer().setGameMode(GameMode.SPECTATOR);
e.getPlayer().teleport(MissileWars.getRedTeam().getSpawn().toVector().midpoint(MissileWars.getBlueTeam().getSpawn().toVector()).toLocation(e.getPlayer().getWorld()));
} }
@EventHandler @EventHandler