crwdns120785:0crwdne120785:0
Note
crwdns120787:0crwdne120787:0
crwdns120789:0crwdne120789:0
crwdns120791:0crwdne120791:0
crwdns120793:0crwdne120793:0
crwdns120795:0:javadoc:crwdnd120795:0:doc:crwdne120795:0
package io.github.username.project;
import org.spongepowered.api.plugin.Plugin;
@Plugin(id = "exampleplugin", name = "Example Plugin", version = "1.0", description = "Example")
public class ExamplePlugin {
}
Note
crwdns120797:0:doc:crwdne120797:0
crwdns120799:0crwdne120799:0
crwdns120801:0crwdne120801:0
crwdns120803:0:javadoc:crwdnd120803:0:javadoc:crwdne120803:0
crwdns120805:0crwdne120805:0
import org.spongepowered.api.plugin.Plugin;
import org.spongepowered.api.event.Listener;
import org.spongepowered.api.event.game.state.GameStartedServerEvent;
// Imports for logger
import com.google.inject.Inject;
import org.slf4j.Logger;
@Plugin(id = "exampleplugin", name = "Example Plugin", version = "1.0", description = "Example")
public class ExamplePlugin {
@Inject
private Logger logger;
@Listener
public void onServerStart(GameStartedServerEvent event) {
logger.info("Successfully running ExamplePlugin!!!");
}
}
Tip
crwdns120807:0:doc:crwdne120807:0
crwdns120809:0crwdne120809:0
crwdns120811:0crwdne120811:0
crwdns120813:0crwdne120813:0
crwdns120815:0:javadoc:crwdne120815:0
crwdns120817:0:javadoc:crwdne120817:0
crwdns120819:0:javadoc:crwdne120819:0
crwdns120821:0:javadoc:crwdne120821:0
crwdns120823:0:javadoc:crwdne120823:0
crwdns120825:0crwdne120825:0
crwdns120827:0:javadoc:crwdne120827:0
crwdns120829:0:javadoc:crwdne120829:0
crwdns120831:0:javadoc:crwdne120831:0
crwdns120833:0:javadoc:crwdne120833:0
crwdns120835:0:javadoc:crwdne120835:0
crwdns120837:0:doc:crwdne120837:0