Nowaha / Shop-by-Conjurate

1.14 update for the Shop plugin by Conjurate. Original: https://www.spigotmc.org/resources/shop.8185/
0 stars 11 forks source link

AsyncPlayerChatEvent should be lowest priority #31

Closed BlackBeltPanda closed 4 years ago

BlackBeltPanda commented 4 years ago

Since AsyncPlayerChatEvent is set to Monitor priority, chat plugins will format and send the chat to the server before Shop can cancel it. This is why it's never a good idea to cancel an event with the Monitor priority; other plugins have no way to tell that the event is cancelled. Shop should cancel the event prior to any other plugin being able to act on it, so setting the priority to lowest should fix that.