diff options
author | Tyler Murphy <tylermurphy534@gmail.com> | 2021-12-25 22:46:22 -0600 |
---|---|---|
committer | Tyler Murphy <tylermurphy534@gmail.com> | 2021-12-25 22:46:22 -0600 |
commit | 6e09da9150bb8b178a168f463136759d95a2f8d4 (patch) | |
tree | 9cdb12f385607eac33da25d2edb3d79bf28ef158 /src/main/java/net/tylermurphy/hideAndSeek/command/Stop.java | |
parent | fix @NotNull (diff) | |
download | kenshinshideandseek-6e09da9150bb8b178a168f463136759d95a2f8d4.tar.gz kenshinshideandseek-6e09da9150bb8b178a168f463136759d95a2f8d4.tar.bz2 kenshinshideandseek-6e09da9150bb8b178a168f463136759d95a2f8d4.zip |
1.3.3 beta 2
Diffstat (limited to 'src/main/java/net/tylermurphy/hideAndSeek/command/Stop.java')
-rw-r--r-- | src/main/java/net/tylermurphy/hideAndSeek/command/Stop.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/net/tylermurphy/hideAndSeek/command/Stop.java b/src/main/java/net/tylermurphy/hideAndSeek/command/Stop.java index f444f34..2fef77c 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/command/Stop.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/command/Stop.java @@ -3,6 +3,7 @@ package net.tylermurphy.hideAndSeek.command; import static net.tylermurphy.hideAndSeek.configuration.Config.*; import net.tylermurphy.hideAndSeek.game.Status; +import net.tylermurphy.hideAndSeek.game.WinType; import org.bukkit.Bukkit; import org.bukkit.command.CommandSender; @@ -20,7 +21,7 @@ public class Stop implements ICommand { if(Main.plugin.status == Status.STARTING || Main.plugin.status == Status.PLAYING) { if(announceMessagesToNonPlayers) Bukkit.broadcastMessage(abortPrefix + message("STOP")); else Util.broadcastMessage(abortPrefix + message("STOP")); - Main.plugin.game.stop(); + Main.plugin.game.stop(WinType.NONE); } else { sender.sendMessage(errorPrefix + message("GAME_NOT_INPROGRESS")); } |