From dd90c7d618656ed638704c78857530711f254346 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Thu, 17 Aug 2023 22:26:42 +0200 Subject: [PATCH] Fixes --- src/de/steamwar/towerrun/game/TowerRunPlayer.java | 1 - src/de/steamwar/towerrun/listener/NotLobbyListener.java | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/towerrun/game/TowerRunPlayer.java b/src/de/steamwar/towerrun/game/TowerRunPlayer.java index db445dd..9aa4629 100644 --- a/src/de/steamwar/towerrun/game/TowerRunPlayer.java +++ b/src/de/steamwar/towerrun/game/TowerRunPlayer.java @@ -20,7 +20,6 @@ package de.steamwar.towerrun.game; import de.steamwar.towerrun.config.WorldConfig; -import lombok.ToString; import org.bukkit.entity.Player; import org.bukkit.util.Vector; diff --git a/src/de/steamwar/towerrun/listener/NotLobbyListener.java b/src/de/steamwar/towerrun/listener/NotLobbyListener.java index ffd5b38..20078f9 100644 --- a/src/de/steamwar/towerrun/listener/NotLobbyListener.java +++ b/src/de/steamwar/towerrun/listener/NotLobbyListener.java @@ -19,6 +19,7 @@ package de.steamwar.towerrun.listener; +import de.steamwar.towerrun.config.WorldConfig; import de.steamwar.towerrun.state.GameStateBukkitListener; import de.steamwar.towerrun.state.GameStates; import org.bukkit.GameMode; @@ -35,5 +36,6 @@ public class NotLobbyListener extends GameStateBukkitListener { @EventHandler public void onPlayerJoin(PlayerJoinEvent event) { event.getPlayer().setGameMode(GameMode.SPECTATOR); + event.getPlayer().teleport(WorldConfig.SPAWN); } }