CSS-CreateCustomCommands icon indicating copy to clipboard operation
CSS-CreateCustomCommands copied to clipboard

[BUG] JSON files is not being reloaded after changes.

Open mrc4tt opened this issue 1 year ago • 3 comments

Setup multiple .json files under plugins/CustomCommands/Commands

Editing exists JSON files => Plugin should auto-reload, but it does not reload at all.

So I need to run css_plugins restart CustomCommands from each editing on files, whenever files are shared with 10-15 CS2 servers.

mrc4tt avatar Mar 28 '24 18:03 mrc4tt

Yes this will be the case.

HerrMagiic avatar Mar 28 '24 18:03 HerrMagiic

@HerrMagiic Sounds good. ;) I hope the plugin will be updated ^

mrc4tt avatar Mar 29 '24 11:03 mrc4tt

@HerrMagiic Sounds good. ;) I hope the plugin will be updated ^

I miss spelled my sentence. Yes you will need to reload the plugin on every server. Maybe I will implement something like this in the feature but I have zero time and no motivation to add this feature right now

HerrMagiic avatar Mar 29 '24 11:03 HerrMagiic

with the new update you can create your own plugin reload command. Here an example:

{
        "Title": "reload",
        "Description": "reload",
        "Command": "csreload",
        "Message": "reloading...", 
        "ServerCommands": [
            "css_plugins reload CustomCommands"
        ],
        "PrintTo": 0
    }

You should also add Permissions to the command so only allowed player can use it. https://github.com/HerrMagiic/CSS-CreateCustomCommands/blob/dev/Examples/Permissions.md

HerrMagiic avatar Oct 06 '24 19:10 HerrMagiic