Class VelocityPacketHandlerProvider

java.lang.Object
dev.jorel.commandapi.network.VelocityPacketHandlerProvider
All Implemented Interfaces:
CommandAPIPacketHandlerProvider<com.velocitypowered.api.proxy.messages.ChannelMessageSource>

public class VelocityPacketHandlerProvider extends Object implements CommandAPIPacketHandlerProvider<com.velocitypowered.api.proxy.messages.ChannelMessageSource>
A CommandAPIPacketHandler for Velocity.

Velocity may receive messages from a Client (Player) or a Server ServerConnection. The common interface there is ChannelMessageSource (coming into Velocity). Packets may be handled differently depending on their direction, so check which of these two sent the packet before continuing.