1
0

Split "reload" in "reloadplugins" and "reloadgroups".

This commit is contained in:
STRWarrior 2014-02-09 00:06:37 +01:00
parent 645c096e2b
commit 011a334a8a

View File

@ -456,12 +456,15 @@ void cServer::ExecuteConsoleCommand(const AString & a_Cmd, cCommandOutputCallbac
PrintHelp(split, a_Output);
return;
}
if (split[0] == "reload")
if (split[0] == "reloadplugins")
{
cPluginManager::Get()->ReloadPlugins();
cRoot::Get()->ReloadGroups();
return;
}
if (split[0] == "reloadgroups")
{
cRoot::Get()->ReloadGroups();
}
// There is currently no way a plugin can do these (and probably won't ever be):
if (split[0].compare("chunkstats") == 0)