Plugin Commands

From Valve Developer Community

(Redirected from Plugin unload)

The following commands are server commands that are meant to be executed by the host in order to control plugins.

Table of contents

plugin_load

plugin_load is used to load a plugin after the server is started (some plugins may not work, or cause instability when doing this).

Usage

To use it you must input the following:

Image:note.png Note: Command parameters are described inside the < and > characters.

Syntax: plugin_load <plugin>

<plugin> is a DLL or SO file that rests in the addons directory, you must *NOT* put in the file extension when using plugin_load.

plugin_print

plugin_print is a server side command that displays the currently loaded plugin. This is used alongside plugin_unload to unload a plugin.

Usage

Image:note.png Note: Command parameters are described inside the < and > characters.

Syntax: plugin_print

Example of output:

Loaded plugins:
---------------------
0: "Detox Server Plugin v0.91"
---------------------

plugin_unload

plugin_unload is used to unload a loaded plugin (depending on the plugin this may be unstable and cause a server to crash. However, one would hope a seasoned programmer could easily avoid this pitfall...

Usage

After using plugin_print to determin plugin ID's if you want to unload a plugin you must type the following.

Image:note.png Note: Command parameters are described inside the < and > characters.

Syntax: plugin_unload <id>

You will get a confirmation message as follows:

Unloaded plugin "<id>"