use of com.velocitypowered.api.proxy.messages.LegacyChannelIdentifier 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.LegacyChannelIdentifier in project Advanced-Portals by sekwah41.
the class AdvancedPortalsPlugin method onProxyInitialize.
@Subscribe
public void onProxyInitialize(ProxyInitializeEvent event) {
String[] splitChannel = BungeeMessages.CHANNEL_NAME.split(":");
AP_CHANNEL = new LegacyChannelIdentifier(BungeeMessages.CHANNEL_NAME);
proxy.getChannelRegistrar().register(AP_CHANNEL);
}
Aggregations