1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-07-04 07:30:23 +02:00

default.log_player_action supports a list of message parts (thanks appgurueu)

This commit is contained in:
nixnoxus
2022-04-22 18:24:36 +02:00
parent fc6e5944a2
commit c3466dbd18
2 changed files with 21 additions and 8 deletions

View File

@ -1131,11 +1131,13 @@ These non-players are marked by the content of `is_fake_player`
(if it is a string) or a "*" in brackets after the player name in
the log.
`default.log_player_action(player, message, pos)`
`default.log_player_action(player, ...)`
* `player` The player who performed the action
* `message` A message describing the action in 3rd person singular present tense.
* `pos` Position of the node at which the action was performed
* `player` The player who performed the action
* `message_parts` Any mumber of message parts describing the action
in 3rd person singular present tense. It can also
contain a `position` / `vector` which is logged as
" at (X,Y,Z)"
`default.set_inventory_action_loggers(def, name)`