Class TownUtil
java.lang.Object
com.palmergames.bukkit.towny.utils.TownUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
gatherInactiveResidents
(List<Resident> resList, int days) Makes a list of Residents who haven't logged in in the given days.static int
static boolean
townCanHaveThisAmountOfResidents
(Town town, int residentCount, boolean isCapital) static boolean
static boolean
-
Method Details
-
gatherInactiveResidents
Makes a list of Residents who haven't logged in in the given days. NPCs and Mayors are not included.- Parameters:
resList
- List of Residents from which to test for inactivity.days
- Number of days after which players are considered inactive.- Since:
- 0.97.0.7
-
checkNationResidentsRequirementsOfTown
-
townHasEnoughResidentsToBeANationCapital
-
townHasEnoughResidentsToJoinANation
-
townCanHaveThisAmountOfResidents
public static boolean townCanHaveThisAmountOfResidents(Town town, int residentCount, boolean isCapital) -
getMaxAllowedNumberOfResidentsWithoutNation
-