Dismount chair?

hello, i created a plugin for sit down on chait, there isn’t any problem, but i want to destroy the item who was created when the player dismount, i try the event DismountEntityEvent, but nothings happends…
how can i do this?
how can i get if the player dismount the item?

Create a custom entity check if it have a passenger. if the passenger is null remove the item

I was making a Chair plugin too, it seems DismountEntityEvent is not implemented.

i used an another proprieties, if you wan michael, the armor stand stay, and it will be removed when the plugin is stopping, but if the server crash, there is a problem and they don’t break, but the plugin is the same because it’s good too, if you want :wink: