Class DuelArena

java.lang.Object
com.xyrisdev.cloud.arena.model.DuelArena

public class DuelArena extends Object
  • Constructor Details

    • DuelArena

      public DuelArena()
  • Method Details

    • addKit

      public void addKit(String kit)
      Adds a new kit to the list of kits for the arena.

      If the kit is already present, it will not be added again.

      Parameters:
      kit - The name of the kit to add.
    • removeKit

      public void removeKit(String kit)
      Removes a kit from the list of kits for the arena.

      If the kit is not present, nothing will happen.

      Parameters:
      kit - The name of the kit to remove.
    • toggleInUse

      public void toggleInUse()
      Toggles the "in use" state of the arena.

      If the arena is currently in use, it will be set to not in use, and vice versa.

    • toggleRegeneration

      public void toggleRegeneration()
      Toggles the "regeneration" state of the arena.

      If the arena is currently regenerating, it will stop regenerating, and vice versa.

    • getSchem

      public File getSchem()
      Gets the file for the schematic of the arena.

      This file is used for regenerating the arena from a WorldEdit schematic.

      Returns:
      The file representing the arena's schematic.