mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
Separate ephemeral from client caching in core.dynamic_add_media()
This commit is contained in:
parent
0b66465f33
commit
5672b93007
5 changed files with 9 additions and 4 deletions
|
@ -7375,8 +7375,10 @@ Server
|
|||
* `filedata`: the data of the file to be sent [*]
|
||||
* `to_player`: name of the player the media should be sent to instead of
|
||||
all players (optional)
|
||||
* `ephemeral`: boolean that marks the media as ephemeral,
|
||||
it will not be cached on the client (optional, default false)
|
||||
* `ephemeral`: if true the server will create a copy of the file and
|
||||
forget about it once delivered (optional boolean, default false)
|
||||
* `client_cache`: hint whether the client should save the media in its cache
|
||||
(optional boolean, default `!ephemeral`, added in 5.14.0)
|
||||
* Exactly one of the parameters marked [*] must be specified.
|
||||
* `callback`: function with arguments `name`, which is a player name
|
||||
* Pushes the specified media file to client(s) as detailed below.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue