Class PermissionCondition


public class PermissionCondition extends ConditionComponent
  • Constructor Details

    • PermissionCondition

      public PermissionCondition()
  • Method Details

    • getKey

      public String getKey()
      Specified by:
      getKey in class EffectComponent
    • execute

      public boolean execute(org.bukkit.entity.LivingEntity caster, int level, List<org.bukkit.entity.LivingEntity> targets, boolean force)
      Description copied from class: ConditionComponent
      Executes the component (to be implemented)
      Overrides:
      execute in class ConditionComponent
      Parameters:
      caster - caster of the skill
      level - level of the skill
      targets - targets to execute on
      force - whether skill should be forced
      Returns:
      true if executed, false if conditions not met