summaryrefslogtreecommitdiffstats
path: root/source/Player.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-14 19:11:54 +0200
committermadmaxoft <github@xoft.cz>2013-08-14 19:11:54 +0200
commit17b2353d71c405bc626de22e5467d13be792c317 (patch)
tree6684622247b5c921439bffec3671582cc67fd499 /source/Player.cpp
parentFixed crashes in world's clientlist manipulators (diff)
downloadcuberite-17b2353d71c405bc626de22e5467d13be792c317.tar
cuberite-17b2353d71c405bc626de22e5467d13be792c317.tar.gz
cuberite-17b2353d71c405bc626de22e5467d13be792c317.tar.bz2
cuberite-17b2353d71c405bc626de22e5467d13be792c317.tar.lz
cuberite-17b2353d71c405bc626de22e5467d13be792c317.tar.xz
cuberite-17b2353d71c405bc626de22e5467d13be792c317.tar.zst
cuberite-17b2353d71c405bc626de22e5467d13be792c317.zip
Diffstat (limited to 'source/Player.cpp')
-rw-r--r--source/Player.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/Player.cpp b/source/Player.cpp
index 34980d2f6..a1ea631aa 100644
--- a/source/Player.cpp
+++ b/source/Player.cpp
@@ -112,6 +112,9 @@ cPlayer::~cPlayer(void)
{
LOGD("Deleting cPlayer \"%s\" at %p, ID %d", m_PlayerName.c_str(), this, GetUniqueID());
+ // Notify the server that the player is being destroyed
+ cRoot::Get()->GetServer()->PlayerDestroying(this);
+
SaveToDisk();
m_World->RemovePlayer( this );