diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-02-09 00:13:25 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-02-09 00:13:25 +0100 |
commit | 2a741e719cd827344bc441a04b27f3e3c8493d33 (patch) | |
tree | 2ada9a81a60bf652818e2e7bed622f2cd811b89e /src/Server.cpp | |
parent | Split "reload" in "reloadplugins" and "reloadgroups". (diff) | |
download | cuberite-2a741e719cd827344bc441a04b27f3e3c8493d33.tar cuberite-2a741e719cd827344bc441a04b27f3e3c8493d33.tar.gz cuberite-2a741e719cd827344bc441a04b27f3e3c8493d33.tar.bz2 cuberite-2a741e719cd827344bc441a04b27f3e3c8493d33.tar.lz cuberite-2a741e719cd827344bc441a04b27f3e3c8493d33.tar.xz cuberite-2a741e719cd827344bc441a04b27f3e3c8493d33.tar.zst cuberite-2a741e719cd827344bc441a04b27f3e3c8493d33.zip |
Diffstat (limited to 'src/Server.cpp')
-rw-r--r-- | src/Server.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Server.cpp b/src/Server.cpp index 671d251cd..ab1458da4 100644 --- a/src/Server.cpp +++ b/src/Server.cpp @@ -456,6 +456,12 @@ void cServer::ExecuteConsoleCommand(const AString & a_Cmd, cCommandOutputCallbac PrintHelp(split, a_Output); return; } + if (split[0] == "reload") + { + cPluginManager::Get()->ReloadPlugins(); + cRoot::Get()->ReloadGroups(); + return; + } if (split[0] == "reloadplugins") { cPluginManager::Get()->ReloadPlugins(); @@ -464,6 +470,7 @@ void cServer::ExecuteConsoleCommand(const AString & a_Cmd, cCommandOutputCallbac if (split[0] == "reloadgroups") { cRoot::Get()->ReloadGroups(); + return; } // There is currently no way a plugin can do these (and probably won't ever be): |