Interface KonquestCamp
- All Superinterfaces:
KonquestTerritory
A camp with a bed for a single barbarian player.
-
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.Location
Gets the location of the bed in this camp.org.bukkit.OfflinePlayer
getOwner()
Gets the player who owns this camp.boolean
Checks whether the owner is currently online.boolean
isPlayerOwner
(org.bukkit.OfflinePlayer player) Checks whether the given player is the owner of this camp.boolean
Checks whether this camp is currently protected from attacks.Methods inherited from interface com.github.rumsfield.konquest.api.model.KonquestTerritory
getCenterLoc, getChunkPoints, getKingdom, getName, getSpawnLoc, getTerritoryType, getWorld, isLocAdjacent, isLocInside
-
Method Details
-
isOwnerOnline
boolean isOwnerOnline()Checks whether the owner is currently online.- Returns:
- True when the camp owner is online, else false
-
getOwner
org.bukkit.OfflinePlayer getOwner()Gets the player who owns this camp.- Returns:
- The player owner
-
isPlayerOwner
boolean isPlayerOwner(org.bukkit.OfflinePlayer player) Checks whether the given player is the owner of this camp.- Parameters:
player
- The player to check- Returns:
- True when the player is the owner, else false
-
getBedLocation
org.bukkit.Location getBedLocation()Gets the location of the bed in this camp.- Returns:
- The bed location
-
isProtected
boolean isProtected()Checks whether this camp is currently protected from attacks. Camps are protected typically due to the owner being offline. When a camp is protected, it cannot be edited or accessed.- Returns:
- True when the camp is protected, else false
-