Message effect can have double evaluation of its message content #4952
Labels
bug
An issue that needs to be fixed. Alternatively, a PR fixing an issue.
priority: low
Issues that are not harmful to the experience but are related to useful changes or additions.
Skript/Server Version
Bug Description
Using the message effect with both a player and console as receivers, and the message content being a VariableString (or formatted expression), the VariableString will be evaluted twice, resulting in for example a function in it being called twice.
Expected Behavior
To only call the VariableString getter once.
Steps to Reproduce
Run
/test
, with at least one player online. Function is called twiceErrors or Screenshots
No response
Other
Fixing this would likely require some more API, as we'd need to be able to convert a list of
MessageComponent
s back to text, which we don't have any methods for AFAIKAgreement
The text was updated successfully, but these errors were encountered: