diff options
author | Tyler Murphy <tylermurphy534@gmail.com> | 2021-10-21 18:26:38 -0400 |
---|---|---|
committer | Tyler Murphy <tylermurphy534@gmail.com> | 2021-10-21 18:26:38 -0400 |
commit | 91311dd23dd93d38c240e759b0d2aa76dc4a5bd9 (patch) | |
tree | 456a7b591ded9c392d4cbb21b0dff942e423ded4 /src/main/java/net/tylermurphy/hideAndSeek/command | |
parent | nametags fix (diff) | |
download | kenshinshideandseek-91311dd23dd93d38c240e759b0d2aa76dc4a5bd9.tar.gz kenshinshideandseek-91311dd23dd93d38c240e759b0d2aa76dc4a5bd9.tar.bz2 kenshinshideandseek-91311dd23dd93d38c240e759b0d2aa76dc4a5bd9.zip |
1.3.0 final beta
Diffstat (limited to 'src/main/java/net/tylermurphy/hideAndSeek/command')
-rw-r--r-- | src/main/java/net/tylermurphy/hideAndSeek/command/Leave.java | 2 | ||||
-rw-r--r-- | src/main/java/net/tylermurphy/hideAndSeek/command/Stop.java | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/net/tylermurphy/hideAndSeek/command/Leave.java b/src/main/java/net/tylermurphy/hideAndSeek/command/Leave.java index 908df5e..4144da7 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/command/Leave.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/command/Leave.java @@ -28,9 +28,9 @@ public class Leave implements ICommand { } if(announceMessagesToNonPlayers) Bukkit.broadcastMessage(messagePrefix + sender.getName() + " has left the HideAndSeek lobby"); else Util.broadcastMessage(messagePrefix + sender.getName() + " has left the HideAndSeek lobby"); + Main.plugin.board.removeBoard(player); Main.plugin.board.remove(player); player.teleport(new Location(Bukkit.getWorld(exitWorld), exitPosition.getX(), exitPosition.getY(), exitPosition.getZ())); - Main.plugin.board.removeBoard(player); if(Main.plugin.status.equals("Standby")) { Main.plugin.board.reloadLobbyBoards(); } else { diff --git a/src/main/java/net/tylermurphy/hideAndSeek/command/Stop.java b/src/main/java/net/tylermurphy/hideAndSeek/command/Stop.java index 416d673..e2cb563 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/command/Stop.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/command/Stop.java @@ -41,6 +41,7 @@ public class Stop implements ICommand { if(Main.plugin.status.equals("Standby")) return; Main.plugin.status = "Standby"; Main.plugin.gameId++; + Main.plugin.timeLeft = 0; Worldborder.resetWorldborder("hideandseek_"+spawnWorld); for(Player player : Main.plugin.board.getPlayers()) { player.setGameMode(GameMode.ADVENTURE); |