Interface KonquestPlot
public interface KonquestPlot
A plot of land within a town, with player members (users) and land (points).
-
Method Summary
Modifier and TypeMethodDescriptionGets the list of all land (points) for this plot.List<org.bukkit.OfflinePlayer>
Gets the list of all members (users) for this plot.boolean
Checks whether the given point is a part of this plot.boolean
hasUser
(org.bukkit.OfflinePlayer player) Checks whether the given player is a member (user) of this plot.
-
Method Details
-
hasPoint
Checks whether the given point is a part of this plot. Use thetoPoint
method to convert from location to point easily. Make sure to check that the world matches also.- Parameters:
point
- The point to check- Returns:
- True when this plot contains the point, else false
-
hasUser
boolean hasUser(org.bukkit.OfflinePlayer player) Checks whether the given player is a member (user) of this plot.- Parameters:
player
- The player to check- Returns:
- True when the player is a member, else false
-
getPoints
Gets the list of all land (points) for this plot.- Returns:
- The list of points
-
getUserOfflinePlayers
List<org.bukkit.OfflinePlayer> getUserOfflinePlayers()Gets the list of all members (users) for this plot.- Returns:
- The list of players
-