Open KhrysAK47 opened 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.
(Plus it can be bypassed with just shift clicking)
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.
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.