1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-16 18:01:40 +00:00

Implemented disconnect_player (#10492)

Co-authored-by: rubenwardy <rw@rubenwardy.com>
This commit is contained in:
Corey Powell 2021-11-26 14:19:40 -05:00 committed by GitHub
parent c85aa0030f
commit 413be76c63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 8 deletions

View file

@ -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
---------