crwdns39673:0crwdne39673:0

Note

crwdns39674:0crwdne39674:0

crwdns39675:0crwdne39675:0

crwdns39676:0crwdne39676:0

crwdns39677:0crwdne39677:0

crwdns39678:0:javadoc:crwdne39678:0

package io.github.username.project;

import org.spongepowered.api.plugin.Plugin;

@Plugin(id = "exampleplugin", name = "Example Plugin", version = "1.0")
public class ExamplePlugin {

}

Note

crwdns39679:0:doc:crwdne39679:0

crwdns39680:0crwdne39680:0

crwdns39681:0crwdne39681:0

crwdns39682:0:javadoc:crwdnd39682:0:javadoc:crwdne39682:0

import org.spongepowered.api.event.Listener;
import org.spongepowered.api.event.game.state.GameStartedServerEvent;

@Plugin(id = "exampleplugin", name = "Example Plugin", version = "1.0")
public class ExamplePlugin {
    @Listener
    public void onServerStart(GameStartedServerEvent event) {
        // Hey! The server has started!
        // Try instantiating your logger in here.
        // (There's a guide for that)
    }
}

Tip

crwdns39683:0:doc:crwdne39683:0

crwdns39684:0crwdne39684:0

crwdns39685:0crwdne39685:0

  • crwdns39686:0crwdne39686:0

    • crwdns39687:0:javadoc:crwdne39687:0

    • crwdns39688:0:javadoc:crwdne39688:0

    • crwdns39689:0:javadoc:crwdne39689:0

    • crwdns39690:0:javadoc:crwdne39690:0

    • crwdns39691:0:javadoc:crwdne39691:0

  • crwdns39692:0crwdne39692:0

    • crwdns39693:0:javadoc:crwdne39693:0

    • crwdns39694:0:javadoc:crwdne39694:0

    • crwdns39695:0:javadoc:crwdne39695:0

    • crwdns39696:0:javadoc:crwdne39696:0

    • crwdns39697:0:javadoc:crwdne39697:0

crwdns39698:0:doc:crwdne39698:0