diff options
author | Mattes D <github@xoft.cz> | 2014-08-24 20:00:45 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-08-24 20:00:45 +0200 |
commit | 8630b20c523033b359e4f9d7513cb6e4aafec1cb (patch) | |
tree | 2a74722a5dd9ba1fcb78d57996624f7f38e33efc /src/Entities/Player.cpp | |
parent | RankMgr: Unified function signature comments in the bindings. (diff) | |
download | cuberite-8630b20c523033b359e4f9d7513cb6e4aafec1cb.tar cuberite-8630b20c523033b359e4f9d7513cb6e4aafec1cb.tar.gz cuberite-8630b20c523033b359e4f9d7513cb6e4aafec1cb.tar.bz2 cuberite-8630b20c523033b359e4f9d7513cb6e4aafec1cb.tar.lz cuberite-8630b20c523033b359e4f9d7513cb6e4aafec1cb.tar.xz cuberite-8630b20c523033b359e4f9d7513cb6e4aafec1cb.tar.zst cuberite-8630b20c523033b359e4f9d7513cb6e4aafec1cb.zip |
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r-- | src/Entities/Player.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index 7992204da..b0dd40615 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -2051,8 +2051,12 @@ void cPlayer::LoadRank(void) // Load the values from cRankManager: cRankManager & RankMgr = cRoot::Get()->GetRankManager(); m_Rank = RankMgr.GetPlayerRankName(m_UUID); + if (m_Rank.empty()) + { + m_Rank = RankMgr.GetDefaultRank(); + } m_Permissions = RankMgr.GetPlayerPermissions(m_UUID); - RankMgr.GetPlayerMsgVisuals(m_UUID, m_MsgPrefix, m_MsgSuffix, m_MsgNameColorCode); + RankMgr.GetRankVisuals(m_Rank, m_MsgPrefix, m_MsgSuffix, m_MsgNameColorCode); // Break up the individual permissions on each dot, into m_SplitPermissions: m_SplitPermissions.clear(); |