crwdns19797:0crwdne19797:0¶
Note
crwdns42093:0crwdne42093:0
crwdns19799:0crwdne19799:0¶
crwdns42094:0crwdne42094:0
crwdns28469:0crwdne28469:0
crwdns41631:0:javadoc:crwdnd41631:0:doc:crwdne41631: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
crwdns19803:0:doc:crwdne19803:0
crwdns19804:0crwdne19804:0¶
crwdns19805:0crwdne19805:0
crwdns19806:0:javadoc:crwdnd19806:0:javadoc:crwdne19806:0
crwdns42210:0crwdne42210: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
crwdns19807:0:doc:crwdne19807:0
crwdns19808:0crwdne19808:0¶
crwdns19809:0crwdne19809:0
crwdns19810:0crwdne19810:0
crwdns19811:0:javadoc:crwdne19811:0
crwdns19812:0:javadoc:crwdne19812:0
crwdns19813:0:javadoc:crwdne19813:0
crwdns19814:0:javadoc:crwdne19814:0
crwdns19815:0:javadoc:crwdne19815:0
crwdns19816:0crwdne19816:0
crwdns19817:0:javadoc:crwdne19817:0
crwdns19818:0:javadoc:crwdne19818:0
crwdns19819:0:javadoc:crwdne19819:0
crwdns19820:0:javadoc:crwdne19820:0
crwdns19821:0:javadoc:crwdne19821:0
crwdns19822:0:doc:crwdne19822:0