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

25 lines
751 B
Java
Raw Normal View History

package de.jaschastarke.minecraft.limitedcreative;
import de.jaschastarke.bukkit.lib.Core;
import de.jaschastarke.bukkit.lib.CoreModule;
import de.jaschastarke.modularize.IModule;
import de.jaschastarke.modularize.ModuleEntry;
public class ModCreativeLimits extends CoreModule {
public ModCreativeLimits(Core 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();
}
}