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:
10
game_api.txt
10
game_api.txt
@ -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)`
|
||||
|
||||
|
Reference in New Issue
Block a user