Class AbilityContext
java.lang.Object
dev.aurelium.auraskills.api.ability.AbilityContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
failsChecks
(org.bukkit.entity.Player player, Ability ability) Performs multiple checks to see whether the player should be allowed to use the ability.boolean
isDisabled
(Ability ability) Gets whether the ability or it's parent skill is disabled
-
Constructor Details
-
AbilityContext
-
-
Method Details
-
isDisabled
Gets whether the ability or it's parent skill is disabled- Parameters:
ability
- the ability to check- Returns:
- whether the ability is disabled
-
failsChecks
Performs multiple checks to see whether the player should be allowed to use the ability. Checks for the ability being locked, the location being disabled, inadequate permissions, among other checks.- Parameters:
player
- the player to checkability
- the ability to check for- Returns:
- true if one of the checks failed, false if all checks passed
-