Class RemotePlayerPreJoinLocalArenaEvent

java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.remote.RemotePlayerPreJoinLocalArenaEvent
All Implemented Interfaces:
ArenaEvent

public class RemotePlayerPreJoinLocalArenaEvent extends Event implements ArenaEvent
Gets called right before a player is being pulled into this server to join an arena.

Keep in mind that this event is async.

  • Constructor Details

    • RemotePlayerPreJoinLocalArenaEvent

      public RemotePlayerPreJoinLocalArenaEvent(RemotePlayer player, Arena arena)
  • Method Details

    • getPlayer

      public RemotePlayer getPlayer()
      The player that is about to join the arena.
      Returns:
      The involved player
    • getArena

      public Arena getArena()
      The arena that he is about to join.
      Specified by:
      getArena in interface ArenaEvent
      Returns:
      The involved arena
    • setIssue

      public void setIssue(@Nullable @Nullable AddPlayerIssue issue)
      Add an issue that may prevent the player from joining the arena.
      Parameters:
      issue - The new issue. null if there is not supposed to be any issue
    • getIssue

      @Nullable public @Nullable AddPlayerIssue getIssue()
      Get the issue that may prevent the player from joining the arena.
      Returns:
      The issue. null if there is not supposed to be any issue
    • hasIssue

      public boolean hasIssue()
      Get if any issue has been added so far, that'd prevent the player from joining.
      Returns:
      true if there's an issue
    • getHandlers

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

      public static HandlerList getHandlerList()