Class ArenaIssuesCheckEvent

java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.arena.ArenaIssuesCheckEvent
All Implemented Interfaces:
ArenaEvent
Direct Known Subclasses:
ArenaEnableEvent

public class ArenaIssuesCheckEvent extends Event implements ArenaEvent
Gets called when the plugin is checking whether or not an arena has issues.

This can occur for any reason, but usually happens with ArenaEnableEvent

  • Constructor Details

  • Method Details

    • hasIssues

      public boolean hasIssues()
      Returns if the arena has any issues and by that won't be able to start correctly
      Returns:
      true if it has one or more issues
    • getIssues

      public Set<ArenaIssuesCheckEvent.Issue> getIssues()
      Returns every issue that prevents the arena from being enabled
      Returns:
      Every issue that the arena has
    • addIssue

      public void addIssue(ArenaIssuesCheckEvent.Issue issue)
      Add an issue which prevents the arena from being enabled
      Parameters:
      issue - The issue that the arena has
    • removeIssue

      public boolean removeIssue(ArenaIssuesCheckEvent.Issue issue)
      Remove a specific issue from this event
      Parameters:
      issue - The issue that should be removed
      Returns:
      returns true if the issue was successfully removed
    • removeIssues

      public void removeIssues()
      Removes every issue and causes the arena to be enabled anyways
    • getSender

      @Nullable public @Nullable CommandSender getSender()
      Returns the person who initiated the check. May return null when a system initiated that (or e.g. someone remotely)
      Returns:
      The person who tried to enable the arena
    • getSenderWrapped

      @Nullable public @Nullable CommandSenderWrapper getSenderWrapped()
      Returns the person who initiated the check. May return null when a system initiated that
      Returns:
      The person who tried to enable the arena
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()