Ajneb97 / ConditionalEvents

MIT License
22 stars 12 forks source link

Offhand Swap Event #36

Open KhrysAK47 opened 10 months ago

KhrysAK47 commented 10 months ago

I have checked the documentation, and it seems there are no events for the offhand swap, I also tried doing this with the slot swap and setting the slot to the number of the offhand one, but it does not get recognized properly.

Ajneb97 commented 10 months ago

You must use https://ajneb97.gitbook.io/conditionalevents/event-types/player-events#player-swap-hand

KhrysAK47 commented 10 months ago

You must use https://ajneb97.gitbook.io/conditionalevents/event-types/player-events#player-swap-hand

It does not work, it only works if you have something in your offhand and unequip it, it doesn't actually check it when you want to equip something in offhand.

KhrysAK47 commented 10 months ago

(Plus it can be bypassed with just shift clicking)

Ajneb97 commented 9 months ago

What the plugin does is only listen to that event. If you say it can be bypassed, it is an issue with Bukkit/Spigot itself. I will have to take a look into it when I have the time.