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

31 lines
924 B
Java
Raw Normal View History

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;
import de.jaschastarke.modularize.IModule;
import de.jaschastarke.modularize.ModuleEntry;
public class ModCreativeLimits extends CoreModule<LimitedCreative> {
2013-02-01 21:25:43 +00:00
protected LimitConfig config;
public ModCreativeLimits(LimitedCreative plugin) {
super(plugin);
}
2013-02-01 21:25:43 +00:00
public LimitConfig getConfig() {
return config;
}
protected FeatureBlockItemSpawn blockDrops = null;
@Override
2013-02-01 21:25:43 +00:00
public void initialize(ModuleEntry<IModule> entry) {
super.initialize(entry);
blockDrops = plugin.getModule(FeatureBlockItemSpawn.class);
if (blockDrops == null)
blockDrops = plugin.addModule(new FeatureBlockItemSpawn(plugin)).getModule();
}
}