#I wanted to remove two player tags when they leave
1 messages · Page 1 of 1 (latest)
if (condition) doSomething;
It's a beforeEvent so you can't modify a player due to restrictions. Has to be done by offsetting the tick using system.run(), or in other cases passing it off to the afterEvent and handling it there whenever applicable.
I never used this event before but I wouldn't be surprised if it still fails to modify the player even after using system.run() since the player would no longer exist in the world by the time it decided to remove a tag.
setDynamicProperty()
doesn't have this limitation, you can call them inside beforeEvents scope, maybe you should try to switch to these.
I wonder if that's intentional or by accident lol.