From 9b3abd29c840d35960b6dfaf9a3369f7d5a5025e Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 9 May 2021 11:29:58 +0200 Subject: [PATCH] Hotfix ConnectionListener for player join after round finish --- src/de/steamwar/misslewars/listener/ConnectionListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/de/steamwar/misslewars/listener/ConnectionListener.java b/src/de/steamwar/misslewars/listener/ConnectionListener.java index 7e42772..41139d9 100644 --- a/src/de/steamwar/misslewars/listener/ConnectionListener.java +++ b/src/de/steamwar/misslewars/listener/ConnectionListener.java @@ -40,6 +40,7 @@ public class ConnectionListener extends BasicListener{ public void onJoin(PlayerJoinEvent e) { e.getPlayer().setDisplayName("ยง7" + e.getPlayer().getName()); e.getPlayer().setGameMode(GameMode.SPECTATOR); + e.getPlayer().teleport(MissileWars.getRedTeam().getSpawn().toVector().midpoint(MissileWars.getBlueTeam().getSpawn().toVector()).toLocation(e.getPlayer().getWorld())); } @EventHandler