From c84ad6e4e0ff94c7ec637783b506e98bf6255f4e Mon Sep 17 00:00:00 2001 From: CrazyCloudCraft | Argantiu <95505222+CrazyCloudCraft@users.noreply.github.com> Date: Wed, 7 Sep 2022 10:26:02 +0200 Subject: [PATCH] Update WSCommands.java --- .../java/de/butzlabben/world/command/commands/WSCommands.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/butzlabben/world/command/commands/WSCommands.java b/src/main/java/de/butzlabben/world/command/commands/WSCommands.java index 66da6e0..b2fd354 100644 --- a/src/main/java/de/butzlabben/world/command/commands/WSCommands.java +++ b/src/main/java/de/butzlabben/world/command/commands/WSCommands.java @@ -17,6 +17,7 @@ import org.bukkit.Bukkit; import org.bukkit.World; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; +import org.bukkit.GameMode; import org.bukkit.entity.Player; import java.util.Iterator; @@ -215,7 +216,7 @@ public class WSCommands { } p.teleport(PluginConfig.getSpawn(p)); - p.setGameMode(GameMode.SURVIVAL);//p.setGameMode(PluginConfig.getSpawnGamemode()); + p.setGameMode(GameMode.SURVIVAL); //p.setGameMode(PluginConfig.getSpawnGamemode()); World w = Bukkit.getWorld(p.getWorld().getName()); SystemWorld.tryUnloadLater(w); } else {