From 71035a8706aa89d6cd12f25fea5191fb35787406 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sun, 21 Aug 2016 16:44:25 +0100 Subject: test --- src/Entities/Player.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/Entities') diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index babe31978..390e4ad52 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -158,12 +158,6 @@ cPlayer::cPlayer(std::weak_ptr a_Client, const AString & a_Player cPlayer::~cPlayer(void) { - if (!cRoot::Get()->GetPluginManager()->CallHookPlayerDestroyed(*this)) - { - cRoot::Get()->BroadcastChatLeave(Printf("%s has left the game", GetName().c_str())); - LOGINFO("Player %s has left the game", GetName().c_str()); - } - LOGD("Deleting cPlayer \"%s\" at %p, ID %d", GetName().c_str(), static_cast(this), GetUniqueID()); // Notify the server that the player is being destroyed -- cgit v1.2.3