1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add on_auth_fail callback (#7039)

Called when a client fails to supply the correct password for the account it's attempting to login as.
This commit is contained in:
red-001 2018-02-15 20:18:54 +00:00 committed by SmallJoker
parent 861cfd8484
commit 338d645fcf
5 changed files with 20 additions and 1 deletions

View file

@ -2615,6 +2615,10 @@ Call these functions only at load time!
* `minetest.register_on_leaveplayer(func(ObjectRef, timed_out))`
* Called when a player leaves the game
* `timed_out`: True for timeout, false for other reasons.
* `minetest.register_on_auth_fail(func(name, ip))`
* Called when a client attempts to log into an account but supplies the wrong password.
* `ip`: The IP address of the client.
* `name`: The account the client attempted to log into.
* `minetest.register_on_cheat(func(ObjectRef, cheat))`
* Called when a player cheats
* `cheat`: `{type=<cheat_type>}`, where `<cheat_type>` is one of: