An addon plugin for InteractiveChat to support PacketEvents instead of ProtocolLib.
This is a very simple plugin that implements all the code seen here.
Very little modifications to code have been made, apart from making it support PacketEvents.
Warning
This plugin REQUIRES v4.3.0.0 of InteractiveChat, or higher.
This plugin will NOT boot otherwise.
PacketEvents shades Adventure, but doesn't relocate it.
InteractiveChat shades Adventure and relocates it.
This creates several issues when it comes to using Adventure, which IC uses heavily.
It is possible to do this through Reflection within IC itself, however that impacts maintainability and readability.
In the end, we decided to split PacketEvents support into two parts:
- Remove the inherent dependency on ProtocolLib.
- Allow external plugins like this to register their own ProtocolProvider.
This allows us to use the now-reflected Adventure API for InteractiveChat, and the normal Adventure which PE / the server will provide.
You can see the corresponding PR here: LOOHP/InteractiveChat#256
- Install the latest version of PacketEvents, and this plugin.
- Start your server
/interactivechatpacketevents checkupdate
- Requires the interactivechatpacketevents.checkupdate
command (or OP). /icpe checkupdate
also works.