summaryrefslogtreewikicommitdiff
path: root/src/main/java/net/tylermurphy/hideAndSeek/commands/Reload.java
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2021-08-24 23:43:01 -0400
committerTyler Murphy <tylermurphy534@gmail.com>2021-08-24 23:43:01 -0400
commitd331302e3d203a7716195aa66c4bc8e0b19099d0 (patch)
tree4c4f55d07914e42858a0313fe1e94f01be23768f /src/main/java/net/tylermurphy/hideAndSeek/commands/Reload.java
parentMerge pull request #6 from tylermurphy534/dev (diff)
downloadkenshinshideandseek-d331302e3d203a7716195aa66c4bc8e0b19099d0.tar.gz
kenshinshideandseek-d331302e3d203a7716195aa66c4bc8e0b19099d0.tar.bz2
kenshinshideandseek-d331302e3d203a7716195aa66c4bc8e0b19099d0.zip
fixed snowball, changed config, added blocked commands, bug fixes i guess
Diffstat (limited to 'src/main/java/net/tylermurphy/hideAndSeek/commands/Reload.java')
-rw-r--r--src/main/java/net/tylermurphy/hideAndSeek/commands/Reload.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/main/java/net/tylermurphy/hideAndSeek/commands/Reload.java b/src/main/java/net/tylermurphy/hideAndSeek/commands/Reload.java
new file mode 100644
index 0000000..04128c5
--- /dev/null
+++ b/src/main/java/net/tylermurphy/hideAndSeek/commands/Reload.java
@@ -0,0 +1,29 @@
+package net.tylermurphy.hideAndSeek.commands;
+
+import org.bukkit.command.CommandSender;
+
+import net.tylermurphy.hideAndSeek.Store;
+import net.tylermurphy.hideAndSeek.util.ICommand;
+
+import static net.tylermurphy.hideAndSeek.Store.*;
+
+public class Reload implements ICommand {
+
+ public void execute(CommandSender sender, String[] args) {
+ Store.loadConfig();
+ sender.sendMessage(messagePrefix + "Reloaded the config");
+ }
+
+ public String getLabel() {
+ return "reload";
+ }
+
+ public String getUsage() {
+ return "";
+ }
+
+ public String getDescription() {
+ return "Reloads the config";
+ }
+
+}