Make the purge task available as a command.

This commit is contained in:
gmcferrin
2013-01-11 16:33:49 -05:00
parent d0e2358fab
commit c2bad4419b
5 changed files with 147 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ import com.gmail.nossr50.commands.mc.McabilityCommand;
import com.gmail.nossr50.commands.mc.MccCommand;
import com.gmail.nossr50.commands.mc.McgodCommand;
import com.gmail.nossr50.commands.mc.McmmoCommand;
import com.gmail.nossr50.commands.mc.McpurgeCommand;
import com.gmail.nossr50.commands.mc.McrefreshCommand;
import com.gmail.nossr50.commands.mc.McremoveCommand;
import com.gmail.nossr50.commands.mc.MctopCommand;
@@ -354,6 +355,9 @@ public class mcMMO extends JavaPlugin {
Config configInstance = Config.getInstance();
//mc* commands
if (configInstance.getCommandMCPurgeEnabled()) {
getCommand("mcpurge").setExecutor(new McpurgeCommand(this));
}
if (configInstance.getCommandMCRemoveEnabled()) {
getCommand("mcremove").setExecutor(new McremoveCommand(this));
}