Class SkillsLoadEvent

java.lang.Object
org.bukkit.event.Event
dev.aurelium.auraskills.api.event.skill.SkillsLoadEvent

public class SkillsLoadEvent extends org.bukkit.event.Event
Calls when skills have finished loading from configuration files, which is usually on the first tick of the server. Most methods on Skill will not work until this event calls. Listen to this event if accessing methods on default Skills during plugin startup instead of in onEnable.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList
     
    Gets all the skills that the plugin has loaded.

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SkillsLoadEvent

      public SkillsLoadEvent(Set<Skill> skills)
  • Method Details

    • getSkills

      public Set<Skill> getSkills()
      Gets all the skills that the plugin has loaded. Some skills may be disabled by users through the config so use Skill.isEnabled() to check whether a skill is enabled.
      Returns:
      the loaded skills
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()