From BZFlagWiki
Revision as of 19:35, 10 July 2011 by Allejo (Talk | contribs) (Added some information on the new plugin loading for 2.4)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Code Example[edit]

 void SAMPLE_PLUGIN::Init ( const char* /*commandLine*/ ) {
     bz_debugMessage(4,"SAMPLE_PLUGIN plugin loaded");
     return 0;


The Init function is required for all plugins 2.4 and higher. This function replaces the bz_Load function. In this function all debug messages, events, map objects, and slash commands are registered. Available functions for this are as follows:

More information on this function can be found on the BZFS_API_2.4_Upgrade page.