From e168eb621cfce7c7bdf6aa58551af4a2bec5a9e3 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Wed, 19 Feb 2020 18:21:53 +0100 Subject: [PATCH] Disables shield --- src/de/steamwar/lobby/listener/PlayerConnectionListener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/lobby/listener/PlayerConnectionListener.java b/src/de/steamwar/lobby/listener/PlayerConnectionListener.java index 2ff3aa6..2580335 100644 --- a/src/de/steamwar/lobby/listener/PlayerConnectionListener.java +++ b/src/de/steamwar/lobby/listener/PlayerConnectionListener.java @@ -22,7 +22,8 @@ public class PlayerConnectionListener implements Listener { event.setJoinMessage(null); Player player = event.getPlayer(); - LobbyPlayer.getLobbyPlayer(player.getUniqueId()); //initialisiert einen neuen LP falls nicht vorhanden + LobbyPlayer lp = LobbyPlayer.getLobbyPlayer(player.getUniqueId()); //initialisiert einen neuen LP falls nicht vorhanden + lp.setShield(false); player.teleport(new Location(Bukkit.getWorlds().get(0), Config.SpawnX, Config.SpawnY, Config.SpawnZ, Config.Yaw, Config.Pitch)); player.getInventory().clear();