summaryrefslogtreecommitdiffstats
path: root/src/Server.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-02-09 00:06:37 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2014-02-09 00:06:37 +0100
commit011a334a8a1bf7a7efcfbbbe895ebae9432ce118 (patch)
tree50aecc8fc38158a212f16ad1f1ca4f49a5b016d2 /src/Server.cpp
parentThe console reload command also reloads the groups. (diff)
downloadcuberite-011a334a8a1bf7a7efcfbbbe895ebae9432ce118.tar
cuberite-011a334a8a1bf7a7efcfbbbe895ebae9432ce118.tar.gz
cuberite-011a334a8a1bf7a7efcfbbbe895ebae9432ce118.tar.bz2
cuberite-011a334a8a1bf7a7efcfbbbe895ebae9432ce118.tar.lz
cuberite-011a334a8a1bf7a7efcfbbbe895ebae9432ce118.tar.xz
cuberite-011a334a8a1bf7a7efcfbbbe895ebae9432ce118.tar.zst
cuberite-011a334a8a1bf7a7efcfbbbe895ebae9432ce118.zip
Diffstat (limited to '')
-rw-r--r--src/Server.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Server.cpp b/src/Server.cpp
index 62b4442d2..671d251cd 100644
--- a/src/Server.cpp
+++ b/src/Server.cpp
@@ -456,12 +456,15 @@ void cServer::ExecuteConsoleCommand(const AString & a_Cmd, cCommandOutputCallbac
PrintHelp(split, a_Output);
return;
}
- if (split[0] == "reload")
+ if (split[0] == "reloadplugins")
{
cPluginManager::Get()->ReloadPlugins();
- cRoot::Get()->ReloadGroups();
return;
}
+ if (split[0] == "reloadgroups")
+ {
+ cRoot::Get()->ReloadGroups();
+ }
// There is currently no way a plugin can do these (and probably won't ever be):
if (split[0].compare("chunkstats") == 0)