Skip to content

Instantly share code, notes, and snippets.

@mika-f
Last active August 29, 2015 14:20
Show Gist options
  • Save mika-f/f71206850c91a78635ff to your computer and use it in GitHub Desktop.
Save mika-f/f71206850c91a78635ff to your computer and use it in GitHub Desktop.
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