summaryrefslogtreecommitdiffstats
path: root/src/Root.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-08-26 14:23:21 +0200
committerMattes D <github@xoft.cz>2014-08-26 14:23:21 +0200
commitbe32c0527cd6c69289217999927c3308d8169465 (patch)
tree2b106aeae7032205c8bc1abf06c9e7f646021af9 /src/Root.cpp
parentType warning fixes. (diff)
parentRankMgr: Exported the default-rank functions. (diff)
downloadcuberite-be32c0527cd6c69289217999927c3308d8169465.tar
cuberite-be32c0527cd6c69289217999927c3308d8169465.tar.gz
cuberite-be32c0527cd6c69289217999927c3308d8169465.tar.bz2
cuberite-be32c0527cd6c69289217999927c3308d8169465.tar.lz
cuberite-be32c0527cd6c69289217999927c3308d8169465.tar.xz
cuberite-be32c0527cd6c69289217999927c3308d8169465.tar.zst
cuberite-be32c0527cd6c69289217999927c3308d8169465.zip
Diffstat (limited to 'src/Root.cpp')
-rw-r--r--src/Root.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/Root.cpp b/src/Root.cpp
index ee0d9b835..ef66f9870 100644
--- a/src/Root.cpp
+++ b/src/Root.cpp
@@ -6,7 +6,6 @@
#include "World.h"
#include "WebAdmin.h"
#include "FurnaceRecipe.h"
-#include "GroupManager.h"
#include "CraftingRecipes.h"
#include "Bindings/PluginManager.h"
#include "MonsterConfig.h"
@@ -47,7 +46,6 @@ cRoot::cRoot(void) :
m_InputThread(NULL),
m_Server(NULL),
m_MonsterConfig(NULL),
- m_GroupManager(NULL),
m_CraftingRecipes(NULL),
m_FurnaceRecipe(NULL),
m_WebAdmin(NULL),
@@ -161,7 +159,7 @@ void cRoot::Start(void)
m_WebAdmin->Init();
LOGD("Loading settings...");
- m_GroupManager = new cGroupManager();
+ m_RankManager.Initialize(m_MojangAPI);
m_CraftingRecipes = new cCraftingRecipes;
m_FurnaceRecipe = new cFurnaceRecipe();
@@ -240,8 +238,6 @@ void cRoot::Start(void)
LOGD("Unloading recipes...");
delete m_FurnaceRecipe; m_FurnaceRecipe = NULL;
delete m_CraftingRecipes; m_CraftingRecipes = NULL;
- LOGD("Forgetting groups...");
- delete m_GroupManager; m_GroupManager = NULL;
LOGD("Unloading worlds...");
UnloadWorlds();
@@ -555,17 +551,6 @@ void cRoot::SaveAllChunks(void)
-void cRoot::ReloadGroups(void)
-{
- LOG("Reload groups ...");
- m_GroupManager->LoadGroups();
- m_GroupManager->CheckUsers();
-}
-
-
-
-
-
void cRoot::BroadcastChat(const AString & a_Message, eMessageType a_ChatPrefix)
{
for (WorldMap::iterator itr = m_WorldsByName.begin(), end = m_WorldsByName.end(); itr != end; ++itr)