mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
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
This commit is contained in:
parent
b95f543da9
commit
b16252dcae
3 changed files with 61 additions and 40 deletions
|
@ -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))`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue