b1naryth1ef / UrTBot

An attempt at a lighter, more configurable alternative to the BigBrotherBot for Urban Terror.
http://bot.hydr0.com/
7 stars 6 forks source link

Readd/rebuild module/plugin support #16

Closed b1naryth1ef closed 12 years ago

b1naryth1ef commented 12 years ago

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.

b1naryth1ef commented 12 years ago

Plugin support is 100% functioning in latest alpha.