Bz Unload

From BZFlagWiki
Revision as of 05:15, 15 June 2011 by Allejo (Talk | contribs) (wrote page for bz_Unload)

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

Code Example[edit]

 BZF_PLUGIN_CALL int bz_Unload ( void ) {
     bz_debugMessage(4,"SAMPLE_PLUGIN plugin unloaded");
     return 0;


The bz_Unload function is required for all plugins. In this function all debug messages, events, map objects, and slash commands are unregistered. Available functions for this are as follows:


All calls to bz_Unload have been deprecated as of 2.4 and will be replaced with:

 virtual void Cleanup() {Flush();}

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