Interface KonquestCampManager
public interface KonquestCampManager
A manager for barbarian camps in Konquest.
-
Method Summary
Modifier and TypeMethodDescriptiongetCamp
(KonquestOfflinePlayer player) Gets the camp that belongs to a barbarian player.getCampGroup
(KonquestCamp camp) Gets the camp group of the given camp.ArrayList<? extends KonquestCamp>
getCamps()
Gets all camps.boolean
isCampGrouped
(KonquestCamp camp) Checks whether the given camp is part of a camp group (clan).boolean
Checks whether camp groups (clans) are enabled in the Konquest configuration.boolean
isCampSet
(KonquestOfflinePlayer player) Checks if the given player has a camp set up, and is a barbarian.boolean
removeCamp
(KonquestOfflinePlayer player) Remove a camp territory and break the bed inside.
-
Method Details
-
isCampSet
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
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
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
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
-