use of com.velocitypowered.api.proxy.messages.ChannelIdentifier in project ADP-Core by AlessioDP.
the class VelocityBungeecordListener method registerChannel.
@Override
public void registerChannel(@NotNull MessageChannel channel) {
ChannelIdentifier identifier = MinecraftChannelIdentifier.create(plugin.getPluginFallbackName(), channel.getId());
((ADPVelocityBootstrap) plugin.getBootstrap()).getServer().getChannelRegistrar().register(identifier);
getChannels().put(channel, identifier);
}
use of com.velocitypowered.api.proxy.messages.ChannelIdentifier in project CloudNet-v3 by CloudNetService.
the class VelocityCloudNetLabyModPlugin method handleProxyInit.
@Subscribe
public void handleProxyInit(ProxyInitializeEvent event) {
ChannelIdentifier identifier = new LegacyChannelIdentifier(LabyModConstants.LMC_CHANNEL_NAME);
this.proxyServer.getChannelRegistrar().register(identifier);
this.labyModManagement = new VelocityLabyModManagement(this.proxyServer, identifier);
this.proxyServer.getEventManager().register(this, new VelocityLabyModListener(this.labyModManagement));
}
use of com.velocitypowered.api.proxy.messages.ChannelIdentifier in project Floodgate by GeyserMC.
the class VelocityPluginMessageRegistration method register.
@Override
public void register(PluginMessageChannel channel) {
ChannelIdentifier identifier = MinecraftChannelIdentifier.from(channel.getIdentifier());
proxy.getChannelRegistrar().register(identifier);
}
use of com.velocitypowered.api.proxy.messages.ChannelIdentifier in project ADP-Core by AlessioDP.
the class VelocityBungeecordDispatcher method registerChannel.
@Override
public void registerChannel(@NotNull MessageChannel channel) {
ChannelIdentifier identifier = MinecraftChannelIdentifier.create(plugin.getPluginFallbackName(), channel.getId());
((ADPVelocityBootstrap) plugin.getBootstrap()).getServer().getChannelRegistrar().register(identifier);
getChannels().put(channel, identifier);
}
Aggregations