This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.

BZFS API Updates: Difference between revisions

From BZFlagWiki
Jump to navigation Jump to search
Allejo (talk | contribs)
Added some information on the new plugin loading for 2.4
 
Zehra (talk | contribs)
m Zehra moved page Init to BZFS API Updates: API changes and updates can be more easily tracked
(No difference)

Revision as of 00:57, 24 November 2025

Code Example

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

Functions

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.