Class AbilityContext

java.lang.Object
dev.aurelium.auraskills.api.ability.AbilityContext

public class AbilityContext extends Object
  • Constructor Details

  • Method Details

    • isDisabled

      public boolean isDisabled(Ability ability)
      Gets whether the ability or it's parent skill is disabled
      Parameters:
      ability - the ability to check
      Returns:
      whether the ability is disabled
    • failsChecks

      public boolean failsChecks(org.bukkit.entity.Player player, Ability ability)
      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 check
      ability - the ability to check for
      Returns:
      true if one of the checks failed, false if all checks passed