Skip to content

TerraByteDev/InteractiveChat-PacketEvents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InteractiveChat-PacketEvents (WIP)

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.

Why use another plugin?

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:

  1. Remove the inherent dependency on ProtocolLib.
  2. 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

Setup

  1. Install the latest version of PacketEvents, and this plugin.
  2. Start your server

Permissions and Commands

/interactivechatpacketevents checkupdate - Requires the interactivechatpacketevents.checkupdate command (or OP). /icpe checkupdate also works.

About

An addon plugin for InteractiveChat to support PacketEvents instead of ProtocolLib.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages