Package konquest.api.manager
Interface KonquestPlotManager
public interface KonquestPlotManager
A manager for town plots in Konquest.
- Author:
- Rumsfield
-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether town plots are enabled from the Konquest configuration.booleanisPlayerPlotProtectBuild(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.booleanisPlayerPlotProtectContainer(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 checkloc- The location to checkplayer- 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 checkloc- The location to checkplayer- The player trying to access containers- Returns:
- True when the player is not allowed to access containers in the plot at loc in town
-