Last active
August 29, 2015 14:20
-
-
Save mika-f/f71206850c91a78635ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tk.mikazuki; | |
import com.google.common.eventbus.Subscribe; | |
import org.spongepowered.api.event.state.*; | |
import org.spongepowered.api.plugin.Plugin; | |
@Plugin(id = "PluginMain", name = "PluginMain", version = "1.0") | |
public class PluginMain { | |
@Subscribe | |
public void onConstruction(ConstructionEvent event) { | |
// code | |
} | |
@Subscribe | |
public void onPreInitialization(PreInitializationEvent event) { | |
// code | |
} | |
@Subscribe | |
public void onInitialization(InitializationEvent event) { | |
// code | |
} | |
@Subscribe | |
public void onPostInitialization(PostInitializationEvent event) { | |
// code | |
} | |
@Subscribe | |
public void onLoadComplete(LoadCompleteEvent event) { | |
// code | |
} | |
@Subscribe | |
public void onServerAboutToStart(ServerAboutToStartEvent event) { | |
// code | |
} | |
@Subscribe | |
public void onServerStarting(ServerStartingEvent event) { | |
// code | |
} | |
@Subscribe | |
public void onServerStated(ServerStartedEvent event) { | |
// code | |
} | |
@Subscribe | |
public void onServerStopping(ServerStoppingEvent event) { | |
// code | |
} | |
@Subscribe | |
public void onServerStopped(ServerStoppedEvent event) { | |
// code | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment