Interface KonquestPlotManager


public interface KonquestPlotManager
A manager for town plots in Konquest. A town plot is a collection of claimed town land chunks where only specific town residents may build. Depending on Konquest configuration settings, the town lord and town knights may be able to build in any town plot.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks whether town plots are enabled from the Konquest configuration.
    boolean
    isPlayerPlotProtectBuild(KonquestTown town, org.bukkit.Location loc, org.bukkit.entity.Player player)
    Checks if the plot at the given location for the given town is protected from edits from the given player.
    boolean
    isPlayerPlotProtectContainer(KonquestTown town, org.bukkit.Location loc, org.bukkit.entity.Player player)
    Checks if the plot at the given location for the given town is protected from container access from the given player.
  • Method Details

    • isEnabled

      boolean isEnabled()
      Checks whether town plots are enabled from the Konquest configuration.
      Returns:
      True when plots are enabled, else false
    • isPlayerPlotProtectBuild

      boolean isPlayerPlotProtectBuild(KonquestTown town, org.bukkit.Location loc, org.bukkit.entity.Player player)
      Checks if the plot at the given location for the given town is protected from edits from the given player. Town lords can always build in all plots.
      Parameters:
      town - The town to check
      loc - The location to check
      player - The player trying to build
      Returns:
      True when the player is not allowed to edit the plot at loc in town
    • isPlayerPlotProtectContainer

      boolean isPlayerPlotProtectContainer(KonquestTown town, org.bukkit.Location loc, org.bukkit.entity.Player player)
      Checks if the plot at the given location for the given town is protected from container access from the given player. Town lords can always access containers in all plots.
      Parameters:
      town - The town to check
      loc - The location to check
      player - The player trying to access containers
      Returns:
      True when the player is not allowed to access containers in the plot at loc in town