diff options
author | [IPSA] Chris de Claverie <c.de-claverie@protonmail.com> | 2020-09-28 00:15:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-28 00:15:03 +0200 |
commit | 9a548b3b3e5d69bc776383860a0611babd654d7b (patch) | |
tree | 86d43bfe622550e2af1120f5613b0c0415bfded6 /src/Server.cpp | |
parent | Fixing Mob spawner behaviour (#4930) (diff) | |
download | cuberite-9a548b3b3e5d69bc776383860a0611babd654d7b.tar cuberite-9a548b3b3e5d69bc776383860a0611babd654d7b.tar.gz cuberite-9a548b3b3e5d69bc776383860a0611babd654d7b.tar.bz2 cuberite-9a548b3b3e5d69bc776383860a0611babd654d7b.tar.lz cuberite-9a548b3b3e5d69bc776383860a0611babd654d7b.tar.xz cuberite-9a548b3b3e5d69bc776383860a0611babd654d7b.tar.zst cuberite-9a548b3b3e5d69bc776383860a0611babd654d7b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Server.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Server.cpp b/src/Server.cpp index 67629ef2c..2730d3511 100644 --- a/src/Server.cpp +++ b/src/Server.cpp @@ -463,7 +463,15 @@ void cServer::ExecuteConsoleCommand(const AString & a_Cmd, cCommandOutputCallbac } else if (split[0] == "reload") { - cPluginManager::Get()->ReloadPlugins(); + if (split.size() > 1) + { + cPluginManager::Get()->ReloadPlugin(split[1]); + a_Output.Out("Plugin reload scheduled"); + } + else + { + cPluginManager::Get()->ReloadPlugins(); + } a_Output.Finished(); return; } |