1
0

Merge pull request #585 from daniel0916/hooks

Added "player destroying" and "player destroyed" hooks
This commit is contained in:
Mattes D
2014-02-01 05:08:08 -08:00
7 changed files with 70 additions and 0 deletions

View File

@@ -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