summaryrefslogtreewikicommitdiff
path: root/src/main/java/net/tylermurphy/hideAndSeek/command/Reload.java
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2022-05-13 21:17:46 -0400
committerTyler Murphy <tylermurphy534@gmail.com>2022-05-13 21:17:46 -0400
commitea8f76493141717296e1f59fbdab21c39f1937be (patch)
tree3d6ceeb5baf90f857b88d8a09fc9a07caddf75ce /src/main/java/net/tylermurphy/hideAndSeek/command/Reload.java
parentMerge pull request #53 from bobby29831/1.4.3 (diff)
downloadkenshinshideandseek-ea8f76493141717296e1f59fbdab21c39f1937be.tar.gz
kenshinshideandseek-ea8f76493141717296e1f59fbdab21c39f1937be.tar.bz2
kenshinshideandseek-ea8f76493141717296e1f59fbdab21c39f1937be.zip
refactor and encapsulate classes
Diffstat (limited to 'src/main/java/net/tylermurphy/hideAndSeek/command/Reload.java')
-rw-r--r--src/main/java/net/tylermurphy/hideAndSeek/command/Reload.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/net/tylermurphy/hideAndSeek/command/Reload.java b/src/main/java/net/tylermurphy/hideAndSeek/command/Reload.java
index d2ed069..0f959f2 100644
--- a/src/main/java/net/tylermurphy/hideAndSeek/command/Reload.java
+++ b/src/main/java/net/tylermurphy/hideAndSeek/command/Reload.java
@@ -19,11 +19,11 @@
package net.tylermurphy.hideAndSeek.command;
+import net.tylermurphy.hideAndSeek.Main;
import net.tylermurphy.hideAndSeek.configuration.Config;
import net.tylermurphy.hideAndSeek.configuration.Items;
import net.tylermurphy.hideAndSeek.configuration.Localization;
-import net.tylermurphy.hideAndSeek.game.Game;
-import net.tylermurphy.hideAndSeek.util.Status;
+import net.tylermurphy.hideAndSeek.game.util.Status;
import org.bukkit.command.CommandSender;
import static net.tylermurphy.hideAndSeek.configuration.Config.errorPrefix;
@@ -34,7 +34,7 @@ public class Reload implements ICommand {
public void execute(CommandSender sender, String[] args) {
- if (Game.status != Status.STANDBY) {
+ if (Main.getInstance().getGame().getStatus() != Status.STANDBY) {
sender.sendMessage(errorPrefix + message("GAME_INPROGRESS"));
return;
}