1
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

View File

@ -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)