1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Allow mods to listen to cheat detections using minetest.register_on_cheat()

This commit is contained in:
Perttu Ahola 2013-08-04 00:45:49 +03:00
parent 742614180c
commit 8831669505
7 changed files with 40 additions and 3 deletions

View file

@ -1142,6 +1142,9 @@ minetest.register_on_joinplayer(func(ObjectRef))
^ Called when a player joins the game
minetest.register_on_leaveplayer(func(ObjectRef))
^ Called when a player leaves the game
minetest.register_on_cheat(func(ObjectRef, cheat))
^ Called when a player cheats
^ cheat: {type="moved_too_fast"/"interacted_too_far"/"finished_unknown_dig"/"dug_unbreakable"/"dug_too_fast"}
minetest.register_on_chat_message(func(name, message))
^ Called always when a player says something
minetest.register_on_player_receive_fields(func(player, formname, fields))