summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-28 02:17:32 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-28 02:17:32 +0200
commit2fb3eb3532c2c40e21def269cb9d5ca6eb11ef6d (patch)
tree1243615638ca28edc20ba62b8272d814f685aaa4 /src/Entities/Player.cpp
parent1.8: Fixed plugin messages. (diff)
downloadcuberite-2fb3eb3532c2c40e21def269cb9d5ca6eb11ef6d.tar
cuberite-2fb3eb3532c2c40e21def269cb9d5ca6eb11ef6d.tar.gz
cuberite-2fb3eb3532c2c40e21def269cb9d5ca6eb11ef6d.tar.bz2
cuberite-2fb3eb3532c2c40e21def269cb9d5ca6eb11ef6d.tar.lz
cuberite-2fb3eb3532c2c40e21def269cb9d5ca6eb11ef6d.tar.xz
cuberite-2fb3eb3532c2c40e21def269cb9d5ca6eb11ef6d.tar.zst
cuberite-2fb3eb3532c2c40e21def269cb9d5ca6eb11ef6d.zip
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r--src/Entities/Player.cpp5
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);