diff options
author | Corey Powell <mistdragon100@gmail.com> | 2021-11-26 14:19:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-26 19:19:40 +0000 |
commit | 413be76c63309266d3d271f01cc74385067d7263 (patch) | |
tree | 1af31eb460950e937979e0036b679c600e12b887 /doc | |
parent | c85aa0030f48e088d64a60b1e0df924a68c3964a (diff) | |
download | minetest-413be76c63309266d3d271f01cc74385067d7263.tar.gz minetest-413be76c63309266d3d271f01cc74385067d7263.tar.bz2 minetest-413be76c63309266d3d271f01cc74385067d7263.zip |
Implemented disconnect_player (#10492)
Co-authored-by: rubenwardy <rw@rubenwardy.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 0a63642af..aff739cfb 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -5741,6 +5741,10 @@ Bans * `minetest.kick_player(name, [reason])`: disconnect a player with an optional reason. * Returns boolean indicating success (false if player nonexistant) +* `minetest.disconnect_player(name, [reason])`: disconnect a player with an + optional reason, this will not prefix with 'Kicked: ' like kick_player. + If no reason is given, it will default to 'Disconnected.' + * Returns boolean indicating success (false if player nonexistant) Particles --------- |