summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-03 23:24:22 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-03 23:24:22 +0100
commit6de8c09fe0044f310397ef94457277f7426470e0 (patch)
tree7f680134da1e53cd67fe68c26bc568490ce107cb /src/Entities/Player.cpp
parentMerge remote-tracking branch 'origin/master' into playerimprovements (diff)
downloadcuberite-6de8c09fe0044f310397ef94457277f7426470e0.tar
cuberite-6de8c09fe0044f310397ef94457277f7426470e0.tar.gz
cuberite-6de8c09fe0044f310397ef94457277f7426470e0.tar.bz2
cuberite-6de8c09fe0044f310397ef94457277f7426470e0.tar.lz
cuberite-6de8c09fe0044f310397ef94457277f7426470e0.tar.xz
cuberite-6de8c09fe0044f310397ef94457277f7426470e0.tar.zst
cuberite-6de8c09fe0044f310397ef94457277f7426470e0.zip
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r--src/Entities/Player.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index d649cacf2..70c881091 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -133,12 +133,12 @@ cPlayer::~cPlayer(void)
if (!cRoot::Get()->GetPluginManager()->CallHookPlayerDestroyed(*this))
{
AString DisconnectMessage;
- AppendPrintf(DisconnectMessage, "%s[LEAVE] %s%s has left the game", cChatColor::Yellow.c_str(), cChatColor::White.c_str(), GetClientHandle()->GetUsername().c_str());
+ AppendPrintf(DisconnectMessage, "%s[LEAVE] %s%s has left the game", cChatColor::Yellow.c_str(), cChatColor::White.c_str(), GetName().c_str());
cRoot::Get()->BroadcastChat(DisconnectMessage);
- LOGINFO("Player %s has left the game.", GetClientHandle()->GetUsername().c_str());
+ LOGINFO("Player %s has left the game.", GetName().c_str());
}
- LOGD("Deleting cPlayer \"%s\" at %p, ID %d", m_PlayerName.c_str(), this, GetUniqueID());
+ LOGD("Deleting cPlayer \"%s\" at %p, ID %d", GetName().c_str(), this, GetUniqueID());
// Notify the server that the player is being destroyed
cRoot::Get()->GetServer()->PlayerDestroying(this);