2013-01-16 11:33:14 +00:00
|
|
|
package de.jaschastarke.minecraft.limitedcreative;
|
|
|
|
|
|
|
|
import de.jaschastarke.i18n;
|
|
|
|
import de.jaschastarke.bukkit.lib.Core;
|
2013-01-20 12:15:34 +00:00
|
|
|
import de.jaschastarke.bukkit.lib.PluginLang;
|
2013-01-16 11:33:14 +00:00
|
|
|
|
|
|
|
public class LimitedCreative extends Core {
|
2013-01-18 21:51:08 +00:00
|
|
|
protected Config config = null;
|
2013-01-22 17:38:48 +00:00
|
|
|
protected MainCommand command = null;
|
2013-01-18 21:51:08 +00:00
|
|
|
|
2013-01-16 11:33:14 +00:00
|
|
|
@Override
|
|
|
|
public void OnInitialize() {
|
2013-01-20 12:15:34 +00:00
|
|
|
super.OnInitialize();
|
2013-01-18 21:51:08 +00:00
|
|
|
config = new Config(this);
|
2013-01-20 12:15:34 +00:00
|
|
|
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);
|
2013-01-20 12:15:34 +00:00
|
|
|
|
|
|
|
Hooks.inizializeHooks(this);
|
|
|
|
|
2013-01-22 17:38:48 +00:00
|
|
|
addModule(new FeatureSwitchGameMode(this));
|
2013-01-16 11:33:14 +00:00
|
|
|
addModule(new ModInventories(this));
|
|
|
|
addModule(new ModCreativeLimits(this));
|
|
|
|
addModule(new ModRegions(this));
|
|
|
|
addModule(new ModCmdBlocker(this));
|
2013-01-18 21:51:08 +00:00
|
|
|
|
2013-01-22 17:38:48 +00:00
|
|
|
config.saveDefault();
|
2013-01-18 21:51:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Config getPluginConfig() {
|
|
|
|
return config;
|
2013-01-16 11:33:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public i18n getLocale() {
|
2013-01-22 17:38:48 +00:00
|
|
|
return getLang();
|
|
|
|
}
|
|
|
|
|
|
|
|
public MainCommand getMainCommand() {
|
|
|
|
return command;
|
2013-01-16 11:33:14 +00:00
|
|
|
}
|
|
|
|
}
|