Search in sources :

Example 1 with ArcheryAbilities

use of com.archyx.aureliumskills.skills.archery.ArcheryAbilities in project AureliumSkills by Archy-X.

the class AureliumSkills method registerEvents.

public void registerEvents() {
    // Registers Events
    PluginManager pm = getServer().getPluginManager();
    pm.registerEvents(new PlayerJoinQuit(this), this);
    regionBlockListener = new RegionBlockListener(this);
    pm.registerEvents(regionBlockListener, this);
    pm.registerEvents(new FarmingLeveler(this), this);
    if (VersionUtils.isAtLeastVersion(16)) {
        pm.registerEvents(new FarmingHarvestLeveler(this), this);
    } else {
        pm.registerEvents(new FarmingInteractLeveler(this), this);
    }
    pm.registerEvents(new ForagingLeveler(this), this);
    pm.registerEvents(new MiningLeveler(this), this);
    pm.registerEvents(new ExcavationLeveler(this), this);
    pm.registerEvents(new FishingLeveler(this), this);
    pm.registerEvents(new FightingLeveler(this), this);
    pm.registerEvents(new ArcheryLeveler(this), this);
    pm.registerEvents(new DefenseLeveler(this), this);
    EnduranceLeveler enduranceLeveler = new EnduranceLeveler(this);
    enduranceLeveler.startTracking();
    pm.registerEvents(enduranceLeveler, this);
    pm.registerEvents(new AgilityLeveler(this), this);
    pm.registerEvents(new AlchemyLeveler(this), this);
    pm.registerEvents(new EnchantingLeveler(this), this);
    sorceryLeveler = new SorceryLeveler(this);
    pm.registerEvents(new HealingLeveler(this), this);
    pm.registerEvents(new ForgingLeveler(this), this);
    pm.registerEvents(new Luck(this), this);
    pm.registerEvents(new Wisdom(this), this);
    pm.registerEvents(new FarmingAbilities(this), this);
    pm.registerEvents(new ForagingAbilities(this), this);
    pm.registerEvents(new MiningAbilities(this), this);
    pm.registerEvents(new FishingAbilities(this), this);
    excavationAbilities = new ExcavationAbilities(this);
    pm.registerEvents(excavationAbilities, this);
    pm.registerEvents(new ArcheryAbilities(this), this);
    DefenseAbilities defenseAbilities = new DefenseAbilities(this);
    pm.registerEvents(defenseAbilities, this);
    FightingAbilities fightingAbilities = new FightingAbilities(this);
    pm.registerEvents(fightingAbilities, this);
    pm.registerEvents(new FightingAbilities(this), this);
    pm.registerEvents(new EnduranceAbilities(this), this);
    pm.registerEvents(new AgilityAbilities(this), this);
    pm.registerEvents(new AlchemyAbilities(this), this);
    pm.registerEvents(new EnchantingAbilities(this), this);
    pm.registerEvents(new HealingAbilities(this), this);
    pm.registerEvents(new ForgingAbilities(this), this);
    pm.registerEvents(new DamageListener(this, defenseAbilities, fightingAbilities), this);
    // Load mana manager
    manaManager = new ManaManager(this);
    getServer().getPluginManager().registerEvents(manaManager, this);
    manaManager.startRegen();
    ItemListener itemListener = new ItemListener(this);
    pm.registerEvents(itemListener, this);
    itemListener.scheduleTask();
    pm.registerEvents(new ArmorListener(OptionL.getList(Option.MODIFIER_ARMOR_EQUIP_BLOCKED_MATERIALS)), this);
    pm.registerEvents(new ArmorModifierListener(this), this);
    pm.registerEvents(new RequirementListener(this), this);
    this.actionBar = new ActionBar(this);
    pm.registerEvents(actionBar, this);
    pm.registerEvents(new RegionListener(this), this);
    pm.registerEvents(new FishingLootHandler(this), this);
    pm.registerEvents(new ExcavationLootHandler(this), this);
    pm.registerEvents(new MiningLootHandler(this), this);
    pm.registerEvents(new ForagingLootHandler(this), this);
}
Also used : FarmingLeveler(com.archyx.aureliumskills.skills.farming.FarmingLeveler) FarmingHarvestLeveler(com.archyx.aureliumskills.skills.farming.FarmingHarvestLeveler) MiningAbilities(com.archyx.aureliumskills.skills.mining.MiningAbilities) PlayerJoinQuit(com.archyx.aureliumskills.listeners.PlayerJoinQuit) FishingAbilities(com.archyx.aureliumskills.skills.fishing.FishingAbilities) AlchemyLeveler(com.archyx.aureliumskills.skills.alchemy.AlchemyLeveler) PluginManager(org.bukkit.plugin.PluginManager) FarmingAbilities(com.archyx.aureliumskills.skills.farming.FarmingAbilities) DefenseLeveler(com.archyx.aureliumskills.skills.defense.DefenseLeveler) EnduranceLeveler(com.archyx.aureliumskills.skills.endurance.EnduranceLeveler) MiningLootHandler(com.archyx.aureliumskills.skills.mining.MiningLootHandler) RegionBlockListener(com.archyx.aureliumskills.region.RegionBlockListener) SorceryLeveler(com.archyx.aureliumskills.skills.sorcery.SorceryLeveler) FishingLootHandler(com.archyx.aureliumskills.skills.fishing.FishingLootHandler) ExcavationAbilities(com.archyx.aureliumskills.skills.excavation.ExcavationAbilities) ArmorListener(com.archyx.aureliumskills.util.armor.ArmorListener) ForgingLeveler(com.archyx.aureliumskills.skills.forging.ForgingLeveler) ArcheryLeveler(com.archyx.aureliumskills.skills.archery.ArcheryLeveler) AgilityLeveler(com.archyx.aureliumskills.skills.agility.AgilityLeveler) ForgingAbilities(com.archyx.aureliumskills.skills.forging.ForgingAbilities) DamageListener(com.archyx.aureliumskills.listeners.DamageListener) ManaManager(com.archyx.aureliumskills.mana.ManaManager) ActionBar(com.archyx.aureliumskills.ui.ActionBar) ArcheryAbilities(com.archyx.aureliumskills.skills.archery.ArcheryAbilities) ExcavationLootHandler(com.archyx.aureliumskills.skills.excavation.ExcavationLootHandler) FightingLeveler(com.archyx.aureliumskills.skills.fighting.FightingLeveler) EnduranceAbilities(com.archyx.aureliumskills.skills.endurance.EnduranceAbilities) ForagingLeveler(com.archyx.aureliumskills.skills.foraging.ForagingLeveler) HealingLeveler(com.archyx.aureliumskills.skills.healing.HealingLeveler) EnchantingAbilities(com.archyx.aureliumskills.skills.enchanting.EnchantingAbilities) FarmingInteractLeveler(com.archyx.aureliumskills.skills.farming.FarmingInteractLeveler) MiningLeveler(com.archyx.aureliumskills.skills.mining.MiningLeveler) AgilityAbilities(com.archyx.aureliumskills.skills.agility.AgilityAbilities) HealingAbilities(com.archyx.aureliumskills.skills.healing.HealingAbilities) EnchantingLeveler(com.archyx.aureliumskills.skills.enchanting.EnchantingLeveler) ExcavationLeveler(com.archyx.aureliumskills.skills.excavation.ExcavationLeveler) ArmorModifierListener(com.archyx.aureliumskills.modifier.ArmorModifierListener) RegionListener(com.archyx.aureliumskills.region.RegionListener) ForagingLootHandler(com.archyx.aureliumskills.skills.foraging.ForagingLootHandler) ForagingAbilities(com.archyx.aureliumskills.skills.foraging.ForagingAbilities) FightingAbilities(com.archyx.aureliumskills.skills.fighting.FightingAbilities) AlchemyAbilities(com.archyx.aureliumskills.skills.alchemy.AlchemyAbilities) RequirementListener(com.archyx.aureliumskills.requirement.RequirementListener) ItemListener(com.archyx.aureliumskills.modifier.ItemListener) FishingLeveler(com.archyx.aureliumskills.skills.fishing.FishingLeveler) DefenseAbilities(com.archyx.aureliumskills.skills.defense.DefenseAbilities)

Aggregations

DamageListener (com.archyx.aureliumskills.listeners.DamageListener)1 PlayerJoinQuit (com.archyx.aureliumskills.listeners.PlayerJoinQuit)1 ManaManager (com.archyx.aureliumskills.mana.ManaManager)1 ArmorModifierListener (com.archyx.aureliumskills.modifier.ArmorModifierListener)1 ItemListener (com.archyx.aureliumskills.modifier.ItemListener)1 RegionBlockListener (com.archyx.aureliumskills.region.RegionBlockListener)1 RegionListener (com.archyx.aureliumskills.region.RegionListener)1 RequirementListener (com.archyx.aureliumskills.requirement.RequirementListener)1 AgilityAbilities (com.archyx.aureliumskills.skills.agility.AgilityAbilities)1 AgilityLeveler (com.archyx.aureliumskills.skills.agility.AgilityLeveler)1 AlchemyAbilities (com.archyx.aureliumskills.skills.alchemy.AlchemyAbilities)1 AlchemyLeveler (com.archyx.aureliumskills.skills.alchemy.AlchemyLeveler)1 ArcheryAbilities (com.archyx.aureliumskills.skills.archery.ArcheryAbilities)1 ArcheryLeveler (com.archyx.aureliumskills.skills.archery.ArcheryLeveler)1 DefenseAbilities (com.archyx.aureliumskills.skills.defense.DefenseAbilities)1 DefenseLeveler (com.archyx.aureliumskills.skills.defense.DefenseLeveler)1 EnchantingAbilities (com.archyx.aureliumskills.skills.enchanting.EnchantingAbilities)1 EnchantingLeveler (com.archyx.aureliumskills.skills.enchanting.EnchantingLeveler)1 EnduranceAbilities (com.archyx.aureliumskills.skills.endurance.EnduranceAbilities)1 EnduranceLeveler (com.archyx.aureliumskills.skills.endurance.EnduranceLeveler)1