diff options
author | sfan5 <sfan5@live.de> | 2016-12-22 19:29:15 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2016-12-26 22:34:29 +0100 |
commit | b16252dcae8c6b0e79c20fa4c3cbddc37ad377cb (patch) | |
tree | ef25171c52f75d86150a0e607579dc0ec6e5a073 /doc/lua_api.txt | |
parent | b95f543da9d56974c4db8e34ce93e6f3bf7e776c (diff) | |
download | minetest-b16252dcae8c6b0e79c20fa4c3cbddc37ad377cb.tar.gz minetest-b16252dcae8c6b0e79c20fa4c3cbddc37ad377cb.tar.bz2 minetest-b16252dcae8c6b0e79c20fa4c3cbddc37ad377cb.zip |
Various anticheat improvements
* Calculate maximum interact distance from wielded tool
* New "interacted_while_dead" cheat_type for the Lua API
* Disallow dropping items while dead
* Move player to spawn before resurrecting them
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 34c64b8df..d2ddc635b 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -2036,9 +2036,10 @@ Call these functions only at load time! * `minetest.register_on_cheat(func(ObjectRef, cheat))` * Called when a player cheats * `cheat`: `{type=<cheat_type>}`, where `<cheat_type>` is one of: - * `"moved_too_fast"` - * `"interacted_too_far"` - * `"finished_unknown_dig"` + * `moved_too_fast` + * `interacted_too_far` + * `interacted_while_dead` + * `finished_unknown_dig` * `dug_unbreakable` * `dug_too_fast` * `minetest.register_on_chat_message(func(name, message))` |