Class VelocityPlayPacketHandler

java.lang.Object
dev.jorel.commandapi.network.VelocityPlayPacketHandler
All Implemented Interfaces:
CommandAPIPacketHandler<com.velocitypowered.api.proxy.messages.ChannelMessageSource>, PlayPacketHandler<com.velocitypowered.api.proxy.messages.ChannelMessageSource>

public class VelocityPlayPacketHandler extends Object implements PlayPacketHandler<com.velocitypowered.api.proxy.messages.ChannelMessageSource>
A PlayPacketHandler for handling CommandAPIPackets sent to 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.