LimitedCreative/src/main/java/de/jaschastarke/minecraft/limitedcreative/LimitedCreative.java

45 lines
1.2 KiB
Java
Raw Normal View History

package de.jaschastarke.minecraft.limitedcreative;
import de.jaschastarke.i18n;
import de.jaschastarke.bukkit.lib.Core;
import de.jaschastarke.bukkit.lib.PluginLang;
public class LimitedCreative extends Core {
protected Config config = null;
2013-01-22 17:38:48 +00:00
protected MainCommand command = null;
@Override
public void OnInitialize() {
super.OnInitialize();
config = new Config(this);
this.debug = config.getDebug();
2013-01-22 17:38:48 +00:00
setLang(new PluginLang("lang/messages", this));
command = new MainCommand(this);
commands.registerCommand(command);
Hooks.inizializeHooks(this);
2013-01-22 17:38:48 +00:00
addModule(new FeatureSwitchGameMode(this));
addModule(new ModInventories(this));
addModule(new ModCreativeLimits(this));
addModule(new ModRegions(this));
addModule(new ModCmdBlocker(this));
2013-01-22 17:38:48 +00:00
config.saveDefault();
}
public Config getPluginConfig() {
return config;
}
public i18n getLocale() {
2013-01-22 17:38:48 +00:00
return getLang();
}
public MainCommand getMainCommand() {
return command;
}
}