summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-12-25 00:36:01 +0100
committerMattes D <github@xoft.cz>2014-12-25 00:36:01 +0100
commitf59740b262bf5259225ab4d6cd2537bead2a12a5 (patch)
tree3e0674720c1b3fcd8ccd6339a683782ed3d457b6 /MCServer/Plugins/APIDump
parentcIsThread: Fixed a race condition on thread start. (diff)
downloadcuberite-f59740b262bf5259225ab4d6cd2537bead2a12a5.tar
cuberite-f59740b262bf5259225ab4d6cd2537bead2a12a5.tar.gz
cuberite-f59740b262bf5259225ab4d6cd2537bead2a12a5.tar.bz2
cuberite-f59740b262bf5259225ab4d6cd2537bead2a12a5.tar.lz
cuberite-f59740b262bf5259225ab4d6cd2537bead2a12a5.tar.xz
cuberite-f59740b262bf5259225ab4d6cd2537bead2a12a5.tar.zst
cuberite-f59740b262bf5259225ab4d6cd2537bead2a12a5.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/APIDump/Hooks/OnServerPing.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/MCServer/Plugins/APIDump/Hooks/OnServerPing.lua b/MCServer/Plugins/APIDump/Hooks/OnServerPing.lua
index 76b6d1517..430465786 100644
--- a/MCServer/Plugins/APIDump/Hooks/OnServerPing.lua
+++ b/MCServer/Plugins/APIDump/Hooks/OnServerPing.lua
@@ -7,7 +7,10 @@ return
Desc = [[
A plugin may implement an OnServerPing() function and register it as a Hook to process pings from
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, that are displayed to the client in the server list.
+ as the server description and the favicon, that are displayed to the client in the server list.</p>
+ <p>
+ The client handle already has its protocol version assigned to it, so the plugin can check that; however,
+ there's no username associated with the client yet, and no player object.
]],
Params = {
{ Name = "ClientHandle", Type = "{{cClientHandle}}", Notes = "The client handle that pinged the server" },