diff options
author | Tyler Murphy <tylermurphy534@gmail.com> | 2021-10-22 20:03:15 -0400 |
---|---|---|
committer | Tyler Murphy <tylermurphy534@gmail.com> | 2021-10-22 20:03:15 -0400 |
commit | 0015592730f936350718ec61cd522c6dea3fe9c1 (patch) | |
tree | a148bfa82386a390bb9ee1d9960dc45ed9145640 /src/main/java/net/tylermurphy/hideAndSeek/command/Stop.java | |
parent | 1.3.0 final beta (diff) | |
download | kenshinshideandseek-0015592730f936350718ec61cd522c6dea3fe9c1.tar.gz kenshinshideandseek-0015592730f936350718ec61cd522c6dea3fe9c1.tar.bz2 kenshinshideandseek-0015592730f936350718ec61cd522c6dea3fe9c1.zip |
localization
Diffstat (limited to 'src/main/java/net/tylermurphy/hideAndSeek/command/Stop.java')
-rw-r--r-- | src/main/java/net/tylermurphy/hideAndSeek/command/Stop.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/net/tylermurphy/hideAndSeek/command/Stop.java b/src/main/java/net/tylermurphy/hideAndSeek/command/Stop.java index e2cb563..810c071 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/command/Stop.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/command/Stop.java @@ -1,6 +1,6 @@ package net.tylermurphy.hideAndSeek.command; -import static net.tylermurphy.hideAndSeek.Config.*; +import static net.tylermurphy.hideAndSeek.configuration.Config.*; import org.bukkit.Bukkit; import org.bukkit.GameMode; @@ -14,6 +14,7 @@ import net.tylermurphy.hideAndSeek.Main; import net.tylermurphy.hideAndSeek.events.Worldborder; import net.tylermurphy.hideAndSeek.util.Packet; import net.tylermurphy.hideAndSeek.util.Util; +import static net.tylermurphy.hideAndSeek.configuration.Localization.*; public class Stop implements ICommand { @@ -23,12 +24,12 @@ public class Stop implements ICommand { return; } if(Main.plugin.status.equals("Starting") || Main.plugin.status.equals("Playing")) { - if(announceMessagesToNonPlayers) Bukkit.broadcastMessage(abortPrefix + "Game has been force stopped."); - else Util.broadcastMessage(abortPrefix + "Game has been force stopped."); + if(announceMessagesToNonPlayers) Bukkit.broadcastMessage(abortPrefix + message("STOP")); + else Util.broadcastMessage(abortPrefix + message("STOP")); onStop(); } else { - sender.sendMessage(errorPrefix + "There is no game in progress"); + sender.sendMessage(errorPrefix + message("GAME_NOT_INPROGRESS")); return; } } |