VentureChat icon indicating copy to clipboard operation
VentureChat copied to clipboard

[Bug] VentureChat cancels other Plugins Events

Open MisterCookie1234 opened this issue 1 year ago • 5 comments

Hello. VentureChat seems to cancel a ChatEvent from another Plugin. Any way to fix this? The Plugin itself wants a chat input for inviting players to the group but if we enter the playername (only the player name without command) it doesn't work. Without VentureChat it seems to work fine.

MisterCookie1234 avatar Nov 20 '22 20:11 MisterCookie1234

Read the documentation: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/EventPriority.html

EventPriority is probably being used wrong. VentureChat listens at Highest.

Aust1n46 avatar Nov 20 '22 20:11 Aust1n46

The Dungeon Plugin runs on "Lowest" which should mean in theory that it executes first, or no?

MisterCookie1234 avatar Nov 20 '22 22:11 MisterCookie1234

Lowest should work if it is indeed configured that way. If you link the source, I can look at it myself.

Aust1n46 avatar Nov 23 '22 23:11 Aust1n46

Hej! Its unfortunately a paid Resource: https://www.patreon.com/alienlabs The Plugin Dev thinks it might be since they use the Paper AsyncChatEvent and this seems to get cancelled by VentureChat. The DungeonGenerator is indeed running on Lowest:

[23:06:00 INFO]: Debug Results for event AsyncChatEvent and priority LOWEST: [23:06:00 INFO]: DungeonGenerator: [23:06:00 INFO]: - info.alienlabs.dungeon.generator.d.b.c debug-event LOW io.papermc.paper.event.player.AsyncChatEvent

MisterCookie1234 avatar Nov 24 '22 00:11 MisterCookie1234

I don't know what to tell you then. I use only backwards compatible events for full Spigot compatibility.

I have not tested the paper specific chat event to see how and when it is fired.

Aust1n46 avatar Nov 26 '22 22:11 Aust1n46