Plugin reload <plugin_name> feature (#4942)

+ Add `reload <pluginname>`
* Fixes #365

Co-authored-by: Alexander Harkness <me@bearbin.net>
Co-authored-by: pwnOrbitals <c.de-claverie@pm.me>
Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
This commit is contained in:
[IPSA] Chris de Claverie
2020-09-27 23:15:03 +01:00
committed by GitHub
co-authored by Alexander Harkness pwnOrbitals Tiger Wang
parent 410d6c0045
commit 9a548b3b3e
6 changed files with 89 additions and 28 deletions
@@ -675,6 +675,17 @@ cPluginManager.AddHook(cPluginManager.HOOK_CHAT, OnChatMessage);
},
Notes = "Queues the specified plugin to be unloaded. To avoid deadlocks, the unloading happens in the main tick thread asynchronously.",
},
ReloadPlugin =
{
Params =
{
{
Name = "PluginName",
Type = "string",
},
},
Notes = "Queues the specified plugin to be reloaded. To avoid deadlocks, the reloading happens in the main tick thread asynchronously.",
}
},
Constants =
{