Closed mugu2006 closed 1 month ago
Breh, code I put in steps to reproduce didn't go in, here it is;
on swim toggle:
cancel event
Yes, indents are correct, idk how to put them in on GitHub
Just learned it can't be cancelled, even though the docs and example state it can.
It's not the fact it can't be cancelled just more so the fact it doesn't do much of anything this is taken from javadocs for the event
Deprecated. This does nothing, the server and the client doesn't work correctly when the server try to bypass this. A current workaround exists. If you want to cancel the switch from the ground state to the swimming state you need to disable the sprinting flag for the player after the cancel action.
Skript/Server Version
Bug Description
Title explains it, cancelling the
on swim toggle
event does nothing, it is detected but not cancelledExpected Behavior
I'd assume the swimming should have been cancelled and I would remain non-swimming
Steps to Reproduce