diff --git a/SubAPI.md b/SubAPI.md index 61a5bbb..81b7f8d 100644 --- a/SubAPI.md +++ b/SubAPI.md @@ -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 }