summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-08-24 20:00:45 +0200
committerMattes D <github@xoft.cz>2014-08-24 20:00:45 +0200
commit8630b20c523033b359e4f9d7513cb6e4aafec1cb (patch)
tree2a74722a5dd9ba1fcb78d57996624f7f38e33efc /src/Entities
parentRankMgr: Unified function signature comments in the bindings. (diff)
downloadcuberite-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')
-rw-r--r--src/Entities/Player.cpp6
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();