aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2013-08-04 00:45:49 +0300
committerPerttu Ahola <celeron55@gmail.com>2013-08-04 00:45:49 +0300
commit8831669505905dd9cd415711063f705d8e7ce02c (patch)
treee3732284d445a143909294265d4b2742e68cfc19 /doc
parent742614180cbbe598694a48bd9eb6f7b97a762243 (diff)
downloadminetest-8831669505905dd9cd415711063f705d8e7ce02c.tar.gz
minetest-8831669505905dd9cd415711063f705d8e7ce02c.tar.bz2
minetest-8831669505905dd9cd415711063f705d8e7ce02c.zip
Allow mods to listen to cheat detections using minetest.register_on_cheat()
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 67ff823da..d34588786 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -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))