CodeCrafter47 / FreeBungeeChat

chat plugin for bungeecord
GNU General Public License v3.0
3 stars 11 forks source link

Plugin doesn't call AsyncPlayerChatEvent #14

Open Skirlez opened 5 years ago

Skirlez commented 5 years ago

the plugin needs to call AsyncPlayerChatEvent for plugins to see that you wrote a message. some plugins tell you to type something in chat, and the plugin blocks it.

CodeCrafter47 commented 5 years ago

There's been another issue on this topic: #6

The gist of it is, that it's hard for a BungeeCord plugin to call a Bukkit event.

As a result FreeBungeeChat will probably never be able to call the AsyncPlayerChatEvent event.

Skirlez commented 5 years ago

But isn't there a bukkit bridge? doesn't that help?

CodeCrafter47 commented 5 years ago

That could be used to call the AsyncPlayerChatEvent, however the are two major issues with it:

  1. FreeBungeeChat doesn't know whether it is installed on the Bukkit servers, in fact many users only install it on BungeeCord.
  2. The AsyncPlayerChatEvent is supposed to contain information on who will receive that chat message. This data can't be supplied correctly as there's no way of referring to a player connected to a different Bukkit server. So plugins which use/manipulate that data (which is a major use case for the AsyncPlayerChatEvent) won't work correctly. Ergo even if that event was somehow called by FreeBungeeChat many plugins using it still won't work correctly.
Skirlez commented 5 years ago

So there is nothing that can be done?

CodeCrafter47 commented 5 years ago

Well at least there's nothing I will do.