Class TownUtil

java.lang.Object
com.palmergames.bukkit.towny.utils.TownUtil

public class TownUtil extends Object
  • Method Details

    • gatherInactiveResidents

      public static List<Resident> gatherInactiveResidents(List<Resident> resList, int days)
      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

      public static void checkNationResidentsRequirementsOfTown(Town town)
    • townHasEnoughResidentsToBeANationCapital

      public static boolean townHasEnoughResidentsToBeANationCapital(Town town)
    • townHasEnoughResidentsToJoinANation

      public static boolean townHasEnoughResidentsToJoinANation(Town town)
    • townCanHaveThisAmountOfResidents

      public static boolean townCanHaveThisAmountOfResidents(Town town, int residentCount, boolean isCapital)
    • getMaxAllowedNumberOfResidentsWithoutNation

      public static int getMaxAllowedNumberOfResidentsWithoutNation(Town town)