Archiviert
13
0

Merge branch 'shieldDisabler' of SteamWar/LobbySystem into master

Dieser Commit ist enthalten in:
Lixfel 2020-02-21 15:33:01 +01:00 committet von Gitea
Commit 81e8d19f70

Datei anzeigen

@ -22,7 +22,8 @@ public class PlayerConnectionListener implements Listener {
event.setJoinMessage(null); event.setJoinMessage(null);
Player player = event.getPlayer(); 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.teleport(new Location(Bukkit.getWorlds().get(0), Config.SpawnX, Config.SpawnY, Config.SpawnZ, Config.Yaw, Config.Pitch));
player.getInventory().clear(); player.getInventory().clear();