diff options
author | Mattes D <github@xoft.cz> | 2014-09-29 20:39:13 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-09-29 20:39:13 +0200 |
commit | d3c2c02b6b35c96b830a1e55691be9d10a4b0784 (patch) | |
tree | b9d3abf6a0a4d65c6779b25ecec0ba89d0f21af6 /src/Entities | |
parent | Merge pull request #1480 from w00tc0d3/work (diff) | |
parent | Fixed a typo in the description. (diff) | |
download | cuberite-d3c2c02b6b35c96b830a1e55691be9d10a4b0784.tar cuberite-d3c2c02b6b35c96b830a1e55691be9d10a4b0784.tar.gz cuberite-d3c2c02b6b35c96b830a1e55691be9d10a4b0784.tar.bz2 cuberite-d3c2c02b6b35c96b830a1e55691be9d10a4b0784.tar.lz cuberite-d3c2c02b6b35c96b830a1e55691be9d10a4b0784.tar.xz cuberite-d3c2c02b6b35c96b830a1e55691be9d10a4b0784.tar.zst cuberite-d3c2c02b6b35c96b830a1e55691be9d10a4b0784.zip |
Diffstat (limited to 'src/Entities')
-rw-r--r-- | src/Entities/Player.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index 66da14c0c..f58a0a016 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -2140,6 +2140,11 @@ void cPlayer::LoadRank(void) { m_Rank = RankMgr.GetDefaultRank(); } + else + { + // Update the name: + RankMgr.UpdatePlayerName(m_UUID, m_PlayerName); + } m_Permissions = RankMgr.GetPlayerPermissions(m_UUID); RankMgr.GetRankVisuals(m_Rank, m_MsgPrefix, m_MsgSuffix, m_MsgNameColorCode); |