diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2016-08-21 17:44:25 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2016-08-21 17:44:25 +0200 |
commit | 71035a8706aa89d6cd12f25fea5191fb35787406 (patch) | |
tree | b7bcd071756ce9cc0ac620292fc4f80225913471 /src/Entities | |
parent | test (diff) | |
download | cuberite-71035a8706aa89d6cd12f25fea5191fb35787406.tar cuberite-71035a8706aa89d6cd12f25fea5191fb35787406.tar.gz cuberite-71035a8706aa89d6cd12f25fea5191fb35787406.tar.bz2 cuberite-71035a8706aa89d6cd12f25fea5191fb35787406.tar.lz cuberite-71035a8706aa89d6cd12f25fea5191fb35787406.tar.xz cuberite-71035a8706aa89d6cd12f25fea5191fb35787406.tar.zst cuberite-71035a8706aa89d6cd12f25fea5191fb35787406.zip |
Diffstat (limited to 'src/Entities')
-rw-r--r-- | src/Entities/Player.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
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<cClientHandle> 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<void *>(this), GetUniqueID()); // Notify the server that the player is being destroyed |