From 8541dbe99ec992f594305b4223de70712565d870 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Sun, 5 Feb 2023 13:47:49 -0500 Subject: [PATCH] 1.7.0 rc3 --- src/main/java/net/tylermurphy/hideAndSeek/command/Send.java | 1 + src/main/java/net/tylermurphy/hideAndSeek/util/Location.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/tylermurphy/hideAndSeek/command/Send.java b/src/main/java/net/tylermurphy/hideAndSeek/command/Send.java index 95c0dd9..43620c5 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/command/Send.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/command/Send.java @@ -40,6 +40,7 @@ public class Send implements ICommand { } Main.getInstance().getGame().setCurrentMap(map); + Main.getInstance().getBoard().reloadLobbyBoards(); for(Player player : Main.getInstance().getBoard().getPlayers()) { map.getLobby().teleport(player); } diff --git a/src/main/java/net/tylermurphy/hideAndSeek/util/Location.java b/src/main/java/net/tylermurphy/hideAndSeek/util/Location.java index a5060c6..606b64b 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/util/Location.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/util/Location.java @@ -87,7 +87,7 @@ public class Location { public void teleport(Player player) { if(!exists()) return; if(load() == null) return; - Main.getInstance().scheduleTask(() -> player.teleport(toBukkit())); + player.teleport(toBukkit()); } public Location changeWorld(String world) {