2013-01-16 11:33:14 +00:00
|
|
|
package de.jaschastarke.minecraft.limitedcreative;
|
|
|
|
|
|
|
|
import de.jaschastarke.bukkit.lib.CoreModule;
|
2013-02-01 21:25:43 +00:00
|
|
|
import de.jaschastarke.minecraft.limitedcreative.limits.LimitConfig;
|
2013-01-16 11:33:14 +00:00
|
|
|
import de.jaschastarke.modularize.IModule;
|
|
|
|
import de.jaschastarke.modularize.ModuleEntry;
|
|
|
|
|
2013-01-18 21:51:08 +00:00
|
|
|
public class ModCreativeLimits extends CoreModule<LimitedCreative> {
|
2013-02-01 21:25:43 +00:00
|
|
|
protected LimitConfig config;
|
|
|
|
|
2013-01-18 21:51:08 +00:00
|
|
|
public ModCreativeLimits(LimitedCreative plugin) {
|
2013-01-16 11:33:14 +00:00
|
|
|
super(plugin);
|
|
|
|
}
|
|
|
|
|
2013-02-01 21:25:43 +00:00
|
|
|
public LimitConfig getConfig() {
|
|
|
|
return config;
|
|
|
|
}
|
|
|
|
|
2013-01-16 11:33:14 +00:00
|
|
|
protected FeatureBlockItemSpawn blockDrops = null;
|
|
|
|
|
|
|
|
@Override
|
2013-02-01 21:25:43 +00:00
|
|
|
public void initialize(ModuleEntry<IModule> entry) {
|
|
|
|
super.initialize(entry);
|
2013-01-16 11:33:14 +00:00
|
|
|
blockDrops = plugin.getModule(FeatureBlockItemSpawn.class);
|
|
|
|
if (blockDrops == null)
|
|
|
|
blockDrops = plugin.addModule(new FeatureBlockItemSpawn(plugin)).getModule();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|