1
0

Added a_ClientHandle to the HOOK_SERVER_PING hook.

This commit is contained in:
Howaner
2014-08-20 22:19:50 +02:00
parent cfdf39a75f
commit cf5ab14ca5
8 changed files with 14 additions and 10 deletions

View File

@@ -18,6 +18,7 @@
#include "../Server.h"
#include "../World.h"
#include "../ChatColor.h"
#include "Bindings/PluginManager.h"
@@ -1017,6 +1018,8 @@ void cProtocolRecognizer::SendLengthlessServerPing(void)
AString Motd = Server->GetDescription();
int NumPlayers = Server->GetNumPlayers();
int MaxPlayers = Server->GetMaxPlayers();
AString Favicon = Server->GetFaviconData();
cRoot::Get()->GetPluginManager()->CallHookServerPing(*m_Client, Motd, NumPlayers, MaxPlayers, Favicon);
switch (cRoot::Get()->GetPrimaryServerVersion())
{