1
0
Fork 0

Added load command in the cServer class

This commit is contained in:
Julian Laubstein 2014-05-17 18:38:33 +02:00
parent b23baa6f3a
commit 6951b68aaf
1 changed files with 6 additions and 0 deletions

View File

@ -476,6 +476,12 @@ void cServer::ExecuteConsoleCommand(const AString & a_Cmd, cCommandOutputCallbac
a_Output.Finished();
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):
if (split[0].compare("chunkstats") == 0)