2013-01-16 11:33:14 +00:00
|
|
|
package de.jaschastarke.minecraft.limitedcreative;
|
|
|
|
|
|
|
|
import de.jaschastarke.bukkit.lib.CoreModule;
|
2013-02-09 19:09:57 +00:00
|
|
|
import de.jaschastarke.minecraft.limitedcreative.cmdblocker.CmdBlockerConfig;
|
|
|
|
import de.jaschastarke.minecraft.limitedcreative.cmdblocker.CommandListener;
|
|
|
|
import de.jaschastarke.modularize.IModule;
|
|
|
|
import de.jaschastarke.modularize.ModuleEntry;
|
2013-01-16 11:33:14 +00:00
|
|
|
|
2013-01-18 21:51:08 +00:00
|
|
|
public class ModCmdBlocker extends CoreModule<LimitedCreative> {
|
2013-02-09 19:09:57 +00:00
|
|
|
private CmdBlockerConfig config;
|
2013-01-16 11:33:14 +00:00
|
|
|
|
2013-01-18 21:51:08 +00:00
|
|
|
public ModCmdBlocker(LimitedCreative plugin) {
|
2013-01-16 11:33:14 +00:00
|
|
|
super(plugin);
|
|
|
|
}
|
2013-02-09 19:09:57 +00:00
|
|
|
@Override
|
|
|
|
public String getName() {
|
|
|
|
return "CmdBlocker";
|
|
|
|
}
|
2013-01-16 11:33:14 +00:00
|
|
|
|
2013-02-09 19:09:57 +00:00
|
|
|
@Override
|
|
|
|
public void initialize(ModuleEntry<IModule> entry) {
|
|
|
|
super.initialize(entry);
|
|
|
|
listeners.addListener(new CommandListener(this));
|
|
|
|
config = new CmdBlockerConfig(this, entry);
|
|
|
|
plugin.getPluginConfig().registerSection(config);
|
|
|
|
}
|
|
|
|
@Override
|
|
|
|
public void onEnable() {
|
|
|
|
super.onEnable();
|
|
|
|
getLog().info(plugin.getLocale().trans("basic.loaded.module"));
|
|
|
|
}
|
|
|
|
public CmdBlockerConfig getConfig() {
|
|
|
|
return config;
|
|
|
|
}
|
2013-01-16 11:33:14 +00:00
|
|
|
}
|