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

24 lines
738 B
Java
Raw Normal View History

package de.jaschastarke.minecraft.limitedcreative;
import de.jaschastarke.bukkit.lib.CoreModule;
import de.jaschastarke.modularize.IModule;
import de.jaschastarke.modularize.ModuleEntry;
public class ModCreativeLimits extends CoreModule<LimitedCreative> {
public ModCreativeLimits(LimitedCreative plugin) {
super(plugin);
}
protected FeatureBlockItemSpawn blockDrops = null;
@Override
public void Initialize(ModuleEntry<IModule> entry) {
super.Initialize(entry);
blockDrops = plugin.getModule(FeatureBlockItemSpawn.class);
if (blockDrops == null)
blockDrops = plugin.addModule(new FeatureBlockItemSpawn(plugin)).getModule();
}
}