package com.github.boformer.donut.protection;

import org.spongepowered.api.event.SpongeEventHandler;
import org.spongepowered.api.event.state.PreInitializationEvent;
import org.spongepowered.api.event.state.ServerStoppingEvent;

import com.github.boformer.donut.protection.config.ConfigManager;
import com.github.boformer.donut.protection.data.DataManager;
import com.github.boformer.donut.protection.event.BlockEventHandler;

public class DonutProtectionPlugin
{
	private ConfigManager configManager;
	private DataManager dataManager;


	@SpongeEventHandler
	public void onInit(PreInitializationEvent event)
	{
		// init ConfigManager
		configManager = new ConfigManager(this);
		configManager.initialize();

		// init DataManager
		dataManager = new DataManager(this);
		dataManager.initialize();

		// register events
		event.getGame().getEventManager().register(new BlockEventHandler(this));
	}

	@SpongeEventHandler
	public void onStop(ServerStoppingEvent event)
	{
		// TODO
	}

	public ConfigManager getConfigManager()
	{
		return configManager;
	}

	public DataManager getDataManager()
	{
		return dataManager;
	}

}

@@ -76,33 +76,24 @@
 .event.S
-pongeEventHandler
+ubscribe
 ;%0Aimport
@@ -526,33 +526,24 @@
 r;%0A%0A%0A%09@S
-pongeEventHandler
+ubscribe
 %0A%09public
@@ -883,25 +883,16 @@
 %0A%09@S
-pongeEventHandler
+ubscribe
 %0A%09pu

replace @SpongeEventHandler with @Subscribe (Renamed in sponge)