summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-02-01 14:08:08 +0100
committerMattes D <github@xoft.cz>2014-02-01 14:08:08 +0100
commit33759197e97000e5be12d4b0daa593c54cdaed7b (patch)
treeb49b2d4e02f973755c7d8007fe1ba082a5666674 /src/Entities
parentMerge pull request #613 from UltraCoderRU/master (diff)
parentAdded PlayerDestroyedHook Documentation (diff)
downloadcuberite-33759197e97000e5be12d4b0daa593c54cdaed7b.tar
cuberite-33759197e97000e5be12d4b0daa593c54cdaed7b.tar.gz
cuberite-33759197e97000e5be12d4b0daa593c54cdaed7b.tar.bz2
cuberite-33759197e97000e5be12d4b0daa593c54cdaed7b.tar.lz
cuberite-33759197e97000e5be12d4b0daa593c54cdaed7b.tar.xz
cuberite-33759197e97000e5be12d4b0daa593c54cdaed7b.tar.zst
cuberite-33759197e97000e5be12d4b0daa593c54cdaed7b.zip
Diffstat (limited to 'src/Entities')
-rw-r--r--src/Entities/Player.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index 82e31ae65..8c37fdc8d 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -130,6 +130,8 @@ cPlayer::cPlayer(cClientHandle* a_Client, const AString & a_PlayerName)
cPlayer::~cPlayer(void)
{
+ cRoot::Get()->GetPluginManager()->CallHookPlayerDestroyed(*this);
+
LOGD("Deleting cPlayer \"%s\" at %p, ID %d", m_PlayerName.c_str(), this, GetUniqueID());
// Notify the server that the player is being destroyed