Registered chunk loader into bukkit event listener.
This commit is contained in:
parent
486a0f837f
commit
d8d0744350
@ -1,17 +1,20 @@
|
||||
package ca.recrown.islandsurvivalcraft;
|
||||
|
||||
import org.bukkit.generator.ChunkGenerator;
|
||||
import org.bukkit.plugin.PluginManager;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import ca.recrown.islandsurvivalcraft.world.generation.IslandWorldChunkGenerator;
|
||||
|
||||
|
||||
public class IslandSurvivalCraft extends JavaPlugin {
|
||||
private PluginManager pluginManager;
|
||||
private IslandWorldChunkGenerator chunkGenerator = new IslandWorldChunkGenerator();
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
|
||||
pluginManager = getServer().getPluginManager();
|
||||
pluginManager.registerEvents(chunkGenerator, this);
|
||||
super.onEnable();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user