LimitedCreative/src/de/jaschastarke/minecraft/limitedcreative/ModCreativeLimits.java
Jascha Starke f80a88174c Complete rewrite beginning:
- removed any old implementation
 - basic modul setup
 - using new hook system
2013-01-16 12:33:14 +01:00

24 lines
751 B
Java

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();
}
}