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:
committed by
GitHub
parent
410d6c0045
commit
9a548b3b3e
@@ -463,7 +463,15 @@ void cServer::ExecuteConsoleCommand(const AString & a_Cmd, cCommandOutputCallbac
|
||||
}
|
||||
else if (split[0] == "reload")
|
||||
{
|
||||
cPluginManager::Get()->ReloadPlugins();
|
||||
if (split.size() > 1)
|
||||
{
|
||||
cPluginManager::Get()->ReloadPlugin(split[1]);
|
||||
a_Output.Out("Plugin reload scheduled");
|
||||
}
|
||||
else
|
||||
{
|
||||
cPluginManager::Get()->ReloadPlugins();
|
||||
}
|
||||
a_Output.Finished();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user