blob: e7ab9428294857e5356023343c6576f812c1590e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
package net.tylermurphy.hideAndSeek.command;
import org.bukkit.command.CommandSender;
import net.tylermurphy.hideAndSeek.Main;
import net.tylermurphy.hideAndSeek.Config;
import static net.tylermurphy.hideAndSeek.Config.*;
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");
return;
}
Config.loadConfig();
Main.plugin.board.reload();
sender.sendMessage(messagePrefix + "Reloaded the config");
}
public String getLabel() {
return "reload";
}
public String getUsage() {
return "";
}
public String getDescription() {
return "Reloads the config";
}
}
|