summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authordaniel0916 <theschokolps@gmail.com>2014-01-24 20:01:21 +0100
committerdaniel0916 <theschokolps@gmail.com>2014-01-24 20:01:21 +0100
commitbfac00f2807a6740e876adebd689cc3ae6e075ed (patch)
treeb1492533d127d49d92b7667eabc404f33c36fc65 /src/Entities
parentfirst changes for enchanting (not finished) (diff)
downloadcuberite-bfac00f2807a6740e876adebd689cc3ae6e075ed.tar
cuberite-bfac00f2807a6740e876adebd689cc3ae6e075ed.tar.gz
cuberite-bfac00f2807a6740e876adebd689cc3ae6e075ed.tar.bz2
cuberite-bfac00f2807a6740e876adebd689cc3ae6e075ed.tar.lz
cuberite-bfac00f2807a6740e876adebd689cc3ae6e075ed.tar.xz
cuberite-bfac00f2807a6740e876adebd689cc3ae6e075ed.tar.zst
cuberite-bfac00f2807a6740e876adebd689cc3ae6e075ed.zip
Diffstat (limited to 'src/Entities')
-rw-r--r--src/Entities/Player.cpp4
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);
}