package com.gmail.nossr50.api;

import org.bukkit.entity.Player;

import com.gmail.nossr50.datatypes.AbilityType;
import com.gmail.nossr50.util.Users;

public class AbilityAPI {

    public static boolean berserkEnabled(Player player) {
        return Users.getProfile(player).getAbilityMode(AbilityType.BERSERK);
    }

    public static boolean gigaDrillBreakerEnabled(Player player) {
        return Users.getProfile(player).getAbilityMode(AbilityType.GIGA_DRILL_BREAKER);
    }

    public static boolean greenTerraEnabled(Player player) {
        return Users.getProfile(player).getAbilityMode(AbilityType.GREEN_TERRA);
    }

    public static boolean serratedStrikesEnabled(Player player) {
        return Users.getProfile(player).getAbilityMode(AbilityType.SERRATED_STRIKES);
    }

    public static boolean skullSplitterEnabled(Player player) {
        return Users.getProfile(player).getAbilityMode(AbilityType.SKULL_SPLIITER);
    }

    public static boolean superBreakerEnabled(Player player) {
        return Users.getProfile(player).getAbilityMode(AbilityType.SUPER_BREAKER);
    }

    public static boolean treeFellerEnabled(Player player) {
        return Users.getProfile(player).getAbilityMode(AbilityType.TREE_FELLER);
    }
}

@@ -1275,12 +1275,295 @@
 %0D%0A    %7D%0D
+%0A%0D%0A    public static boolean isAnyAbilityEnabled(Player player) %7B%0D%0A        for (AbilityType ability : AbilityType.values()) %7B%0D%0A            if (Users.getProfile(player).getAbilityMode(ability)) %7B%0D%0A                return true;%0D%0A            %7D%0D%0A        %7D%0D%0A%0D%0A        return false;%0D%0A    %7D%0D
 %0A%7D%0D%0A

Add ability to check if any ability is enabled.