summaryrefslogtreewikicommitdiff
path: root/src/main/java/net/tylermurphy/hideAndSeek/command/Reload.java
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main/java/net/tylermurphy/hideAndSeek/command/Reload.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/main/java/net/tylermurphy/hideAndSeek/command/Reload.java b/src/main/java/net/tylermurphy/hideAndSeek/command/Reload.java
index 55147d6..cf580c9 100644
--- a/src/main/java/net/tylermurphy/hideAndSeek/command/Reload.java
+++ b/src/main/java/net/tylermurphy/hideAndSeek/command/Reload.java
@@ -1,22 +1,26 @@
package net.tylermurphy.hideAndSeek.command;
+import static net.tylermurphy.hideAndSeek.configuration.Config.*;
+
import org.bukkit.command.CommandSender;
import net.tylermurphy.hideAndSeek.Main;
-import net.tylermurphy.hideAndSeek.Config;
+import net.tylermurphy.hideAndSeek.configuration.Config;
+import net.tylermurphy.hideAndSeek.configuration.Localization;
-import static net.tylermurphy.hideAndSeek.Config.*;
+import static net.tylermurphy.hideAndSeek.configuration.Localization.*;
public class Reload implements ICommand {
public void execute(CommandSender sender, String[] args) {
if(!Main.plugin.status.equals("Standby")) {
- sender.sendMessage(errorPrefix + "Game is currently in session");
+ sender.sendMessage(errorPrefix + message("GAME_INPROGRESS"));
return;
}
Config.loadConfig();
- sender.sendMessage(messagePrefix + "Reloaded the config");
+ Localization.init();
+ sender.sendMessage(messagePrefix + message("CONFIG_RELOAD"));
}
public String getLabel() {