Same as in previous versions, but with better setup methods, hooking methods, and interfaces. We need to find a way to buffer @Command and @Listener queries until some of the base functions are called (see #17).
Functions to be called on start (in order):
init(API, config): Plugin should return a brief startup message, and set any global variables
registerEvents(): Signals the plugin to register all its events
registerCommands(): Signals the plugin to register all commands
registerListeners(): Signals the plugin to register all listeners
registerLoops(): Threaded function for the plugin to hook loops onto
run(): Plugin should actually begin execution of code, and return a brief 'startup done' message.
Same as in previous versions, but with better setup methods, hooking methods, and interfaces. We need to find a way to buffer
@Command
and@Listener
queries until some of the base functions are called (see #17).Functions to be called on start (in order):
init(API, config)
: Plugin should return a brief startup message, and set any global variablesregisterEvents()
: Signals the plugin to register all its eventsregisterCommands()
: Signals the plugin to register all commandsregisterListeners()
: Signals the plugin to register all listenersregisterLoops()
: Threaded function for the plugin to hook loops ontorun()
: Plugin should actually begin execution of code, and return a brief 'startup done' message.