Interface KonquestCampManager


public interface KonquestCampManager
A manager for barbarian camps in Konquest.
  • Method Details

    • isCampSet

      boolean isCampSet(KonquestOfflinePlayer player)
      Checks if the given player has a camp set up, and is a barbarian.
      Parameters:
      player - The player to check
      Returns:
      True if the player has a camp, else false
    • getCamp

      Gets the camp that belongs to a barbarian player. Returns null when the camp does not exist.
      Parameters:
      player - The camp owner
      Returns:
      The camp
    • getCamps

      ArrayList<? extends KonquestCamp> getCamps()
      Gets all camps.
      Returns:
      The list of camps
    • removeCamp

      boolean removeCamp(KonquestOfflinePlayer player)
      Remove a camp territory and break the bed inside.
      Parameters:
      player - The camp owner
      Returns:
      True when the camp is removed successfully, else false
    • isCampGroupsEnabled

      boolean isCampGroupsEnabled()
      Checks whether camp groups (clans) are enabled in the Konquest configuration.
      Returns:
      True when camp groups are enabled, else false
    • isCampGrouped

      boolean isCampGrouped(KonquestCamp camp)
      Checks whether the given camp is part of a camp group (clan). A camp group is a collection of adjacent camps.
      Parameters:
      camp - The camp to check
      Returns:
      True when the camp is part of a group, else false
    • getCampGroup

      KonquestCampGroup getCampGroup(KonquestCamp camp)
      Gets the camp group of the given camp. Returns null if no group exists.
      Parameters:
      camp - The camp
      Returns:
      The camp group, or null if no group exists