Search in sources :

Example 1 with PlayerListener

use of be.isach.ultracosmetics.listeners.PlayerListener in project UltraCosmetics by iSach.

the class UltraCosmetics method registerListeners.

/**
 * Registers Listeners.
 */
private void registerListeners() {
    PluginManager pluginManager = Bukkit.getPluginManager();
    pluginManager.registerEvents(new PlayerListener(this), this);
    pluginManager.registerEvents(new MainListener(), this);
    pluginManager.registerEvents(new EntitySpawningManager(), this);
    if (UltraCosmeticsData.get().getServerVersion().offhandAvailable()) {
        pluginManager.registerEvents(new Listener19(this), this);
        if (VersionManager.IS_VERSION_1_13) {
            pluginManager.registerEvents(new Listener113(), this);
        }
    }
}
Also used : PluginManager(org.bukkit.plugin.PluginManager) EntitySpawningManager(be.isach.ultracosmetics.util.EntitySpawningManager) Listener113(be.isach.ultracosmetics.listeners.Listener113) MainListener(be.isach.ultracosmetics.listeners.MainListener) Listener19(be.isach.ultracosmetics.listeners.Listener19) PlayerListener(be.isach.ultracosmetics.listeners.PlayerListener)

Aggregations

Listener113 (be.isach.ultracosmetics.listeners.Listener113)1 Listener19 (be.isach.ultracosmetics.listeners.Listener19)1 MainListener (be.isach.ultracosmetics.listeners.MainListener)1 PlayerListener (be.isach.ultracosmetics.listeners.PlayerListener)1 EntitySpawningManager (be.isach.ultracosmetics.util.EntitySpawningManager)1 PluginManager (org.bukkit.plugin.PluginManager)1