You should not use this function to loop through all plugins, use the iterator instead. Using this native or this function will not cause SourceMod to fail loading on older versions, however, GetFeatureStatus will only work if this function returns true.įinds a plugin by its order in the list from the "plugins list" server "sm" command. Returns whether "GetFeatureStatus" will work. OnConfigsExecuted() will not be called until the config file has executed, but it will be called if the execution fails. Specifies that the given config file should be executed after plugin load. This is only called once in the lifetime of the plugin, and is paired with OnPluginEnd(). A library is either a plugin name or extension name, as exposed via its include file.Ĭalled when the plugin is about to be unloaded.Ĭalled when the plugin's pause status is changing.Ĭalled when the plugin is fully initialized and all known external references are resolved. A library is either a plugin name or extension name, as exposed via its include file.Ĭalled right before a library is removed that the current plugin references optionally. Note that you should avoid doing expensive computations or declaring large local arrays.Ĭalled after a library is added that the current plugin references optionally. This is the best place to initialize plugin functions which are based on cvar data.Ĭalled before every server frame. This can be used by antiflood algorithms to decay/increase flooding weights.Ĭalled when the map has loaded, servercfgfile (server.cfg) has been executed, and all plugin configs are done executing. This must return either true or false to indicate that a client is or is not spamming the server.Ĭalled after a client's flood check has been computed. It is called after the "exec sourcemod.cfg" command and all AutoExecConfig() exec commands have been added to the ServerCommand() buffer.Ĭalled when a client has sent chat text. This is called once, right after OnMapStart() but any time before OnConfigsExecuted(). If a plugin late loads, it will be called immediately after OnPluginStart(). Thus, this forward should only be used for explicit pre-emptive things, such as adding dynamic natives, setting certain types of load filters (such as not loading the plugin for certain games).Ĭalled after all plugins have been loaded. This is called even if the plugin type is "private." Any natives from modules are not available at this point. Called before OnPluginStart, in case the plugin wants to check for load failure.