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 {
|
|
|
|
private i18n lang;
|
2013-01-18 21:51:08 +00:00
|
|
|
protected Config config = null;
|
|
|
|
|
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();
|
|
|
|
|
|
|
|
lang = new PluginLang("lang/messages", this);
|
|
|
|
|
|
|
|
Hooks.inizializeHooks(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
|
|
|
|
|
|
|
config.save();
|
|
|
|
}
|
|
|
|
|
|
|
|
public Config getPluginConfig() {
|
|
|
|
return config;
|
2013-01-16 11:33:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Deprecated
|
|
|
|
public String L(String msg, Object... objects) {
|
|
|
|
return lang.trans(msg, objects);
|
|
|
|
}
|
|
|
|
public i18n getLocale() {
|
|
|
|
return lang;
|
|
|
|
}
|
|
|
|
}
|