summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulian Laubstein <julianlaubstein@yahoo.de>2014-05-17 18:38:33 +0200
committerJulian Laubstein <julianlaubstein@yahoo.de>2014-05-17 18:38:33 +0200
commit6951b68aaf208c7efdcc954fbc54420966fafa4a (patch)
treeb77913101feea7fd6a26d42bed86732379ec071f
parentMerge pull request #1002 from tonibm19/patch-1 (diff)
downloadcuberite-6951b68aaf208c7efdcc954fbc54420966fafa4a.tar
cuberite-6951b68aaf208c7efdcc954fbc54420966fafa4a.tar.gz
cuberite-6951b68aaf208c7efdcc954fbc54420966fafa4a.tar.bz2
cuberite-6951b68aaf208c7efdcc954fbc54420966fafa4a.tar.lz
cuberite-6951b68aaf208c7efdcc954fbc54420966fafa4a.tar.xz
cuberite-6951b68aaf208c7efdcc954fbc54420966fafa4a.tar.zst
cuberite-6951b68aaf208c7efdcc954fbc54420966fafa4a.zip
-rw-r--r--src/Server.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Server.cpp b/src/Server.cpp
index bfb1b1cbb..91bc6853e 100644
--- a/src/Server.cpp
+++ b/src/Server.cpp
@@ -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)