Added load command in the cServer class
This commit is contained in:
parent
b23baa6f3a
commit
6951b68aaf
@ -476,6 +476,12 @@ void cServer::ExecuteConsoleCommand(const AString & a_Cmd, cCommandOutputCallbac
|
|||||||
a_Output.Finished();
|
a_Output.Finished();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (split[0] == "load" && !split[1].empty())
|
||||||
|
{
|
||||||
|
cPluginManager::Get()->LoadPlugin(split[1]);
|
||||||
|
a_Output.Out("Plugin " + split[1] + " added and activated!");
|
||||||
|
a_Output.Finished();
|
||||||
|
}
|
||||||
|
|
||||||
// There is currently no way a plugin can do these (and probably won't ever be):
|
// There is currently no way a plugin can do these (and probably won't ever be):
|
||||||
if (split[0].compare("chunkstats") == 0)
|
if (split[0].compare("chunkstats") == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user