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);
}
}
}
Aggregations