single argument print(foo) in player scoped apps will always target the player instance for chat message output.

This commit is contained in:
gnembon committed 2023-04-20 20:46:33 +02:00
1 parent c9b93e598a
commit 51fae27708
2 files changed
+13 -6

No files matched your search

+1
View File
@@ -245,6 +245,7 @@ produce an exception.
### `print(expr)`, `print(player/player_list, expr)`
Displays the result of the expression to the chat. Overrides default `scarpet` behaviour of sending everything to stderr.
For player scoped apps it always by default targets the player for whom the app runs on behalf.
Can optionally define player or list of players to send the message to.
### `format(components, ...)`, `format([components, ...])`