Fixed line left in.
This commit is contained in:
parent
3ff7103440
commit
9dccbe7792
@ -1,5 +1,3 @@
|
|||||||
(cClientHandle & a_ClientHandle, AString & a_ServerDescription, int & a_OnlinePlayersCount, int & a_MaxPlayersCount, AString & a_Favicon);
|
|
||||||
|
|
||||||
return
|
return
|
||||||
{
|
{
|
||||||
HOOK_SERVER_PING =
|
HOOK_SERVER_PING =
|
||||||
@ -8,7 +6,8 @@ return
|
|||||||
DefaultFnName = "OnServerPing", -- also used as pagename
|
DefaultFnName = "OnServerPing", -- also used as pagename
|
||||||
Desc = [[
|
Desc = [[
|
||||||
A plugin may implement an OnServerPing() function and register it as a Hook to process pings from
|
A plugin may implement an OnServerPing() function and register it as a Hook to process pings from
|
||||||
clients in the server server list.
|
clients in the server server list. It can change the logged in players and player capacity, as well
|
||||||
|
as the server description and the favicon by editing the values passed in.
|
||||||
]],
|
]],
|
||||||
Params = {
|
Params = {
|
||||||
{ Name = "ClientHandle", Type = "{{cClientHandle}}", Notes = "The client handle that pinged the server" },
|
{ Name = "ClientHandle", Type = "{{cClientHandle}}", Notes = "The client handle that pinged the server" },
|
||||||
@ -18,7 +17,7 @@ return
|
|||||||
{ Name = "Favicon", Type = "string", Notes = "The base64 encoded favicon to be displayed in the server list for compatible clients" },
|
{ Name = "Favicon", Type = "string", Notes = "The base64 encoded favicon to be displayed in the server list for compatible clients" },
|
||||||
},
|
},
|
||||||
Returns = [[
|
Returns = [[
|
||||||
The plugin may return a boolean of whether to respond to the client that pinged.
|
The plugin may return a boolean.
|
||||||
]],
|
]],
|
||||||
}, -- HOOK_SERVER_PING
|
}, -- HOOK_SERVER_PING
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user