Class ArenaManager

java.lang.Object
plugily.projects.buildbattle.arena.ArenaManager

public class ArenaManager
extends Object
Author:
Plajer

Created at 25.05.2018

  • Method Details

    • joinAttempt

      public static void joinAttempt​(org.bukkit.entity.Player player, BaseArena arena)
      Attempts player to join arena. Calls BBGameJoinEvent. Can be cancelled only via above-mentioned event
      Parameters:
      player - player to join
      arena - arena to join
      See Also:
      BBGameJoinEvent
    • leaveAttempt

      public static void leaveAttempt​(org.bukkit.entity.Player player, BaseArena arena)
      Attempts player to leave arena. Calls BBGameLeaveEvent event.
      Parameters:
      player - player to leave
      arena - arena to leave
      See Also:
      BBGameLeaveEvent
    • stopGame

      public static void stopGame​(boolean quickStop, BaseArena arena)
      Stops current arena. Calls BBGameEndEvent event
      Parameters:
      quickStop - should arena be stopped immediately? (use only in important cases)
      arena - arena to stop
      See Also:
      BBGameEndEvent