summaryrefslogtreewikicommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/net/tylermurphy/hideAndSeek/command/Send.java1
-rw-r--r--src/main/java/net/tylermurphy/hideAndSeek/util/Location.java2
2 files changed, 2 insertions, 1 deletions
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) {