Class ArenaRegistry

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

public class ArenaRegistry
extends Object
Created by Tom on 27/07/2014.
  • Constructor Details

    • ArenaRegistry

      public ArenaRegistry()
  • Method Details

    • getArenas

      public static List<BaseArena> getArenas()
    • getArena

      @Nullable public static BaseArena getArena​(org.bukkit.entity.Player p)
      Returns arena where the player is
      Parameters:
      p - target player
      Returns:
      Arena or null if not playing
    • registerArena

      public static void registerArena​(BaseArena arena)
    • unregisterArena

      public static void unregisterArena​(BaseArena arena)
    • getArena

      public static BaseArena getArena​(String id)
      Returns arena based by ID
      Parameters:
      id - name of arena
      Returns:
      Arena or null if not found
    • registerArenas

      public static void registerArenas()
    • shuffleBungeeArena

      public static void shuffleBungeeArena()
    • getBungeeArena

      public static int getBungeeArena()