Skip to content

Conversation

ArranTuna
Copy link
Collaborator

onElementDataChange can now be cancelled when a client, setElementData, or removeElementData changes an element data. This is useful because right now you have to do setElementData to cancel a change, which broadcasts to all players and also triggers the event again. Being able to just cancel the event is the cleanest way to deal with unauthorized data changes.

I tested it as many ways as I could think of to try and break it but everything works as intended.

onElementDataChange can now be cancelled when a client, setElementData, or removeElementData changes an element data.
This is useful because right now you have to do setElementData to cancel a change, which broadcasts to all players and also triggers the event again. Being able to just cancel the event is the cleanest way to deal with unauthorized data changes.
@ArranTuna ArranTuna added the enhancement New feature or request label Sep 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant