summaryrefslogtreecommitdiffstats
path: root/src/Server.cpp
diff options
context:
space:
mode:
author[IPSA] Chris de Claverie <c.de-claverie@protonmail.com>2020-09-28 00:15:03 +0200
committerGitHub <noreply@github.com>2020-09-28 00:15:03 +0200
commit9a548b3b3e5d69bc776383860a0611babd654d7b (patch)
tree86d43bfe622550e2af1120f5613b0c0415bfded6 /src/Server.cpp
parentFixing Mob spawner behaviour (#4930) (diff)
downloadcuberite-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 'src/Server.cpp')
-rw-r--r--src/Server.cpp10
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;
}