to start a plugin project, you need to import the whole dependences in libs,including current rukkit release.
to start with this framework:
- src
- MyPlugin.java
- plugin.yml
author: author-name
version: 1.0.0
name: my-plugin
#Plugin API version to support.
apiVersion: 0.5.x
#Main Plugin Class to load.
pluginClass: MyPlugin
public class MyPlugin extends RukkitPlugin {
//Executes when PluginManager init
@Override
public void onStart() {
//Do something...
}
//Executes when Server Started.
@Override
public void onDone() {
//Do something...
}
//Executes when Server stopped.
@Override
public void onStop() {
//Do something...
}
}
Packed them to jar, drop jar into server/plugins folder.You might see this:
PluginManager::Loading my-plugin(v1.0.0)...