Difference between revisions of "How to load plugins without restarting the server"

From AlliedModders Wiki
Jump to: navigation, search
(Created page with " <h2>How to load plugins without restarting the server</h2> In this tutorial You will learn how to load a new plugins without needing to restart the server.<br /> At the very...")
 
 
(4 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
<h2>How to load plugins without restarting the server</h2>
 
<h2>How to load plugins without restarting the server</h2>
  
In this tutorial You will learn how to load a new plugins without needing to restart the server.<br />
 
At the very beginning of this tutorial I would like to mention that <b>this method was tested only in Counter-Strike: Global Offensive</b>, therefore it might not work in other games (but it should because it is a part of SourceMod).<br />
 
If You want to do this in any other game than CS:GO, but it doesn't work feel free to add my [https://steamcommunity.com/id/Wengiel17/ Steam account] to Your friends list for help.<br />
 
Notice that in this tutorial we will assume that the plugin is already in the "plugins" directory on the server and that You know how to open in-game console. Also You will need server's RCON password.<br />
 
<br />
 
 
----
 
  
 +
4.  Execute "sm_ rcon sm plugin load YourPluginsName" in console where "YourPluginsName" is the name of your plugin. <br />
 +
'''Important:''' If your plugin's name has a dot in it, you must add ".smx" at the end of your plugin's name.
 
<br />
 
<br />
1. '''If You are connected to the server that the plugins is installed on You can skip this step'''.<br />
+
<b>Examples:</b>
Type in console "rcon_address MyServer'sIPAddress", where "MyServer'sIPAddress" is Your server's IP address.<br />
+
* <code>sm_rcon sm plugins load myplugin</code> Will work because the plugin's name doesn't have a dot in it
This will establish the RCON connection with the server.
+
* <code>sm_rcon sm plugins load my.plugin</code> Won't work because the plugin's name has a dot in it
<br /><br />
+
* <code>rcon sm plugins load my.plugin.smx</code> Will work because even though there is a dot in the plugin's name there is ".smx" at the end of the plugin's name
2. Use command "rcon_password MyServer'sRCONPassword", where "MyServer'sRCONPassword" is Your server's RCON password.<br />
 
This will set the RCON's password so that You can execute the commands as a server.
 
<br /><br />
 
3. '''[OPTIONAL]''' Type in console "rcon sm plugins refresh". This will refresh the list of plugins in the plugins directory on Your server.<br />
 
However every time I was using this method it always worked without it, so You don't really need to do that.
 
<br /><br />
 
4.  Execute "rcon sm plugin load YourPlugin'sName" in console where "YourPlugin'sName" is the name of Your plugin. <br />
 
'''IMPORTANT''' If Your plugin's name has a dot in it You have to add ".smx" at the end of "YourPlugin'sName"!
 
<br />
 
 
<br />
 
<br />
<b>Examples:</b>
 
        rcon sm plugins load myplugin
 
        Will work because the plugin's name doesn't have a dot in it
 
 
        rcon sm plugins load my.plugin
 
        Won't work because the plugin's name has a dot in it
 
  
        rcon sm plugins load my.plugin.smx
+
If you need to unload your plugins simply type "unload" instead of "load".<br />
        Will work because even though there is a dot in the plugin's name there is ".smx" at the end of the plugin's name
+
If you need a full list of SourceMod plugins commands just type "sm_rcon sm plugins list" in console.
<br />
 
<br />
 
And that's pretty much it! You've just loaded Your plugin without restarting a server.<br />
 
If You would need to because of some reason unload Your plugins simply "load" in "rcon sm plugins load" to "unload".<br />
 
If You need a full list of SourceMod plugins commands just type "rcon sm plugins" in console.
 

Latest revision as of 21:28, 2 September 2019

How to load plugins without restarting the server


4. Execute "sm_ rcon sm plugin load YourPluginsName" in console where "YourPluginsName" is the name of your plugin.
Important: If your plugin's name has a dot in it, you must add ".smx" at the end of your plugin's name.
Examples:

  • sm_rcon sm plugins load myplugin Will work because the plugin's name doesn't have a dot in it
  • sm_rcon sm plugins load my.plugin Won't work because the plugin's name has a dot in it
  • rcon sm plugins load my.plugin.smx Will work because even though there is a dot in the plugin's name there is ".smx" at the end of the plugin's name


If you need to unload your plugins simply type "unload" instead of "load".
If you need a full list of SourceMod plugins commands just type "sm_rcon sm plugins list" in console.