diff options
author | daniel0916 <theschokolps@gmail.com> | 2014-01-25 11:25:22 +0100 |
---|---|---|
committer | daniel0916 <theschokolps@gmail.com> | 2014-01-25 11:25:22 +0100 |
commit | bac750b24e673358ec55d3bf71c118a749fe5d0c (patch) | |
tree | b939a88d40583897876fe66d6355233fd6ef6b14 /src/Entities | |
parent | APIDump: Added notes about objects across cWorld's task execution. (diff) | |
download | cuberite-bac750b24e673358ec55d3bf71c118a749fe5d0c.tar cuberite-bac750b24e673358ec55d3bf71c118a749fe5d0c.tar.gz cuberite-bac750b24e673358ec55d3bf71c118a749fe5d0c.tar.bz2 cuberite-bac750b24e673358ec55d3bf71c118a749fe5d0c.tar.lz cuberite-bac750b24e673358ec55d3bf71c118a749fe5d0c.tar.xz cuberite-bac750b24e673358ec55d3bf71c118a749fe5d0c.tar.zst cuberite-bac750b24e673358ec55d3bf71c118a749fe5d0c.zip |
Diffstat (limited to 'src/Entities')
-rw-r--r-- | src/Entities/Player.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index c1f2456eb..abdd792e0 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -120,6 +120,8 @@ cPlayer::cPlayer(cClientHandle* a_Client, const AString & a_PlayerName) cPlayer::~cPlayer(void) { + cRoot::Get()->GetPluginManager()->CallHookPlayerDestroying(*this); + LOGD("Deleting cPlayer \"%s\" at %p, ID %d", m_PlayerName.c_str(), this, GetUniqueID()); // Notify the server that the player is being destroyed @@ -134,6 +136,8 @@ cPlayer::~cPlayer(void) delete m_InventoryWindow; LOGD("Player %p deleted", this); + + cRoot::Get()->GetPluginManager()->CallHookPlayerDestroyed(*this); } |