Init

From BZFlagWiki
Jump to: navigation, search

Code Example[edit]

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

Functions[edit]

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.