diff options
author | sapier <Sapier at GMX dot net> | 2014-02-13 20:17:42 +0100 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-04-08 21:12:20 +0200 |
commit | 142e2d3b74ad886eed83b0fc9d6cfea100dae10a (patch) | |
tree | 869bd3599c590e062bc838013b83088280734a81 /src/script/lua_api/l_server.h | |
parent | 556bdc260a6938ddab8db22e2ebc4033ec3757eb (diff) | |
download | hax-minetest-server-142e2d3b74ad886eed83b0fc9d6cfea100dae10a.tar.gz hax-minetest-server-142e2d3b74ad886eed83b0fc9d6cfea100dae10a.zip |
Cleanup client init states by bumping protocol version
Don't use TOSERVER_RECEIVED_MEDIA but TOSERVER_CLIENT_READY as indicatio for client ready
Handle clients with protocol version < 23 (almost) same way as before
Make client tell server about it's version
Add client state to not send bogus player position updates prior init complete
Add access to statistics information (peer connction time,rtt,version)
Fix clients standing stalled in world while preloading item visuals (new clients only)
Add get_player_information to read client specific information from lua
Diffstat (limited to 'src/script/lua_api/l_server.h')
-rw-r--r-- | src/script/lua_api/l_server.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/lua_api/l_server.h b/src/script/lua_api/l_server.h index 0d0aa45c8..4101f2856 100644 --- a/src/script/lua_api/l_server.h +++ b/src/script/lua_api/l_server.h @@ -67,6 +67,9 @@ private: // get_player_ip() static int l_get_player_ip(lua_State *L); + // get_player_information() + static int l_get_player_information(lua_State *L); + // get_ban_list() static int l_get_ban_list(lua_State *L); |