Search in sources :

Example 1 with DisabledEvents

use of com.lielamar.auth.velocity.listeners.DisabledEvents 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]));
}
Also used : EventManager(com.velocitypowered.api.event.EventManager) OnVelocityPlayerConnections(com.lielamar.auth.velocity.listeners.OnVelocityPlayerConnections) OnPluginMessage(com.lielamar.auth.velocity.listeners.OnPluginMessage) DisabledEvents(com.lielamar.auth.velocity.listeners.DisabledEvents)

Aggregations

DisabledEvents (com.lielamar.auth.velocity.listeners.DisabledEvents)1 OnPluginMessage (com.lielamar.auth.velocity.listeners.OnPluginMessage)1 OnVelocityPlayerConnections (com.lielamar.auth.velocity.listeners.OnVelocityPlayerConnections)1 EventManager (com.velocitypowered.api.event.EventManager)1