Reload feature.

sendjes

New Member
Member
Sep 1, 2014
15
0
1
Denmark
Hi.

I was thinking, say you edit a setting for a plugin whilst the server is running, would it be possible to add some kind of feature to reload, so any changes made to a certain plugins setting would then be loaded with new settings? More specific .ini changes to take affect after reload.

I hope it made sense.
 

balu92

Retired Staff
Retired Staff
Trusted Member
Jul 11, 2014
338
75
28
34
"pluton.reload" in server console or in-game console as admin. It will reload the .py, .js file and call On_PluginInit(). It will also reload LoadOuts and reload Commands.
 
  • Like
Reactions: sendjes

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
You can reload 1 plugin at a time in game.
Python:
class Reload:
    def On_Command(self, command):
        if command.cmd == "Reload":
            PluginLoader.ReloadPlugin("Insert String Name")
(Just pulled this out of DotPeek)
 
  • Like
Reactions: sendjes

balu92

Retired Staff
Retired Staff
Trusted Member
Jul 11, 2014
338
75
28
34
you can do that from console:
pluton.reload "pluginname"
;)