Search in sources :

Example 1 with VelocityChatListener

use of com.alessiodp.parties.velocity.listeners.VelocityChatListener in project Parties by AlessioDP.

the class VelocityPartiesPlugin method registerListeners.

@Override
protected void registerListeners() {
    getLoggerManager().logDebug(Constants.DEBUG_PLUGIN_REGISTERING, true);
    ADPVelocityBootstrap plugin = (ADPVelocityBootstrap) getBootstrap();
    EventManager em = plugin.getServer().getEventManager();
    em.register(plugin, new VelocityChatListener(this));
    em.register(plugin, new VelocityFollowListener(this));
    em.register(plugin, new VelocityJoinLeaveListener(this));
}
Also used : VelocityFollowListener(com.alessiodp.parties.velocity.listeners.VelocityFollowListener) ADPVelocityBootstrap(com.alessiodp.core.velocity.bootstrap.ADPVelocityBootstrap) VelocityEventManager(com.alessiodp.parties.velocity.events.VelocityEventManager) EventManager(com.velocitypowered.api.event.EventManager) VelocityChatListener(com.alessiodp.parties.velocity.listeners.VelocityChatListener) VelocityJoinLeaveListener(com.alessiodp.parties.velocity.listeners.VelocityJoinLeaveListener)

Aggregations

ADPVelocityBootstrap (com.alessiodp.core.velocity.bootstrap.ADPVelocityBootstrap)1 VelocityEventManager (com.alessiodp.parties.velocity.events.VelocityEventManager)1 VelocityChatListener (com.alessiodp.parties.velocity.listeners.VelocityChatListener)1 VelocityFollowListener (com.alessiodp.parties.velocity.listeners.VelocityFollowListener)1 VelocityJoinLeaveListener (com.alessiodp.parties.velocity.listeners.VelocityJoinLeaveListener)1 EventManager (com.velocitypowered.api.event.EventManager)1