use of com.velocitypowered.api.proxy.messages.MinecraftChannelIdentifier in project FastLogin by games647.
the class FastLoginVelocity method sendPluginMessage.
public void sendPluginMessage(RegisteredServer server, ChannelMessage message) {
if (server != null) {
ByteArrayDataOutput dataOutput = ByteStreams.newDataOutput();
message.writeTo(dataOutput);
MinecraftChannelIdentifier channel = MinecraftChannelIdentifier.create(getName(), message.getChannelName());
server.sendPluginMessage(channel, dataOutput.toByteArray());
}
}
Aggregations