mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Add option to not prepend "Server -!- " to messages sent with minetest.chat_send_player()
This commit is contained in:
parent
9894167bbf
commit
3d4d0cb574
5 changed files with 14 additions and 7 deletions
|
@ -1005,7 +1005,8 @@ minetest.check_player_privs(name, {priv1=true,...}) -> bool, missing_privs
|
|||
|
||||
Chat:
|
||||
minetest.chat_send_all(text)
|
||||
minetest.chat_send_player(name, text)
|
||||
minetest.chat_send_player(name, text, prepend)
|
||||
^ prepend: optional, if it is set to false "Server -!- " will not be prepended to the message
|
||||
|
||||
Inventory:
|
||||
minetest.get_inventory(location) -> InvRef
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue