Merge pull request #585 from daniel0916/hooks
Added "player destroying" and "player destroyed" hooks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user