implement config re-loading
This commit is contained in:
22
src/main/java/gg/malloc/defense/commands/ReloadCommand.java
Normal file
22
src/main/java/gg/malloc/defense/commands/ReloadCommand.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package gg.malloc.defense.commands;
|
||||
|
||||
import gg.malloc.defense.Plugin;
|
||||
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
public class ReloadCommand implements CommandExecutor {
|
||||
Plugin m_plugin;
|
||||
|
||||
public ReloadCommand(Plugin plugin) {
|
||||
m_plugin = plugin;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onCommand(CommandSender sender, Command command, String s, String[] args) {
|
||||
sender.sendMessage("Reloading arenas...");
|
||||
m_plugin.reloadArenas();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user