This template was made for essential plugins that provide common services for other plugins (e.g. economy, teleportation, minigame APIs).
The separation of the service interfaces (API) and the plugin (implementation of the API) has several advantages:
If you just want to create a simple plugin, the simple boilerplate is the right choice!
myplugin-plugin
and myplugin-api
)settings.gradle
to match your project.build.gradle
to match your project.NotifierPlugin
class located in the main project. Remember to change the @Plugin
-Annotation on line 37.com.github.spbp.notifier
which is simply the domain and user reversed. If you want to find out more about naming conventions go here: Code Conventions (Oracle.com). Do this on both the main and the API subprojects.HEADER.TXT
and LICENSE.TXT
files.gradlew build
or ./gradlew build
if you're on a *nix system.build/libs
inside the projects root directory.For support see the related thread on the Sponge Forums.