use of com.lielamar.auth.velocity.listeners.OnPluginMessage in project 2FA by LielAmar.
the class TwoFactorAuthentication method registerListeners.
public void registerListeners() {
EventManager eventManager = this.proxy.getEventManager();
eventManager.register(this, new OnPluginMessage(this));
eventManager.register(this, new OnVelocityPlayerConnections(this));
eventManager.register(this, new DisabledEvents(this));
this.proxy.getChannelRegistrar().register(INCOMING = MinecraftChannelIdentifier.create(PluginMessagingHandler.channelName.split(":")[0], PluginMessagingHandler.channelName.split(":")[1]));
this.proxy.getChannelRegistrar().register(OUTGOING = MinecraftChannelIdentifier.create(PluginMessagingHandler.channelName.split(":")[0], PluginMessagingHandler.channelName.split(":")[1]));
}
Aggregations