mirror of
https://github.com/ME1312/SubServers-2.git
synced 2024-11-29 05:36:13 +01:00
Updated SubAPI (markdown)
parent
bdae132f15
commit
d9e0dd1fc5
@ -109,15 +109,15 @@ Plugin structure is pretty simple, all you need is a main class annotated with `
|
||||
import net.ME1312.Galaxi.Event.GalaxiStartEvent;
|
||||
import net.ME1312.Galaxi.Event.GalaxiStopEvent;
|
||||
import net.ME1312.Galaxi.Plugin.Plugin;
|
||||
import net.ME1312.Galaxi.Library.Event.EventHandler;
|
||||
import net.ME1312.Galaxi.Library.Event.Subscribe;
|
||||
|
||||
@SubPlugin(name = "ExamplePlugin", version = "1.0.0a", authors = "ME1312")
|
||||
@Plugin(name = "ExamplePlugin", version = "1.0.0a", authors = "ME1312")
|
||||
public class ExamplePlugin {
|
||||
@EventHandler
|
||||
@Subscribe
|
||||
public void onEnable(GalaxiStartEvent event) {
|
||||
// Write enable code here
|
||||
}
|
||||
@EventHandler
|
||||
@Subscribe
|
||||
public void onDisable(GalaxiStopEvent event) {
|
||||
// Write disable code here
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user