Uses of Class
com.palmergames.bukkit.towny.object.Town
Packages that use Town
Package
Description
- 
Uses of Town in com.palmergames.bukkit.townyMethods in com.palmergames.bukkit.towny that return TownModifier and TypeMethodDescription@Nullable TownTownyAPI.getResidentTownOrNull(Resident resident) Gets the resident's town if they have one.@Nullable TownGets the town from the given name.@Nullable TownGets the town from the given UUID.@Nullable TownTownyAPI.getTown(@NotNull org.bukkit.entity.Player player) @Nullable TownTownyAPI.getTown(org.bukkit.Location location) Get theTownat a specificLocation.@Nullable Town@Nullable Town@Nullable TownTownyAPI.getTownOrNull(TownBlock townBlock) Methods in com.palmergames.bukkit.towny that return types with arguments of type TownModifier and TypeMethodDescriptionTownyAPI.getTowns()Get a List of all the Towns.Gets a List of Towns using an array of names.Gets a List of Towns using a List of UUIDs@Unmodifiable Collection<Town> TownyUniverse.getTowns()TownyAPI.getTownsWithoutNation()Get a List of all the Towns that aren't a part of a Nation.Methods in com.palmergames.bukkit.towny with parameters of type TownModifier and TypeMethodDescriptionstatic StringTownySettings.getCapitalPostfix(Town town) static StringTownySettings.getCapitalPrefix(Town town) static intTownySettings.getMaxBonusBlocks(Town town) static intTownySettings.getMaxBonusBlocks(Town town, int residents) static intTownySettings.getMaxOutposts(Town town) static intTownySettings.getMaxOutposts(Town town, int residents) static intTownySettings.getMaxOutposts(Town town, int residentsAmount, int townsAmount) static intTownySettings.getMaxPurchasedBlocks(Town town) static intTownySettings.getMaxPurchasedBlocks(Town town, int residents) static intTownySettings.getMaxResidentsForTown(Town town) static intTownySettings.getMaxTownBlocks(Town town) static intTownySettings.getMaxTownBlocks(Town town, int residents) static intTownySettings.getNationBonusBlocks(Town town) List<org.bukkit.entity.Player> TownyAPI.getOnlinePlayersInTown(Town town) Gets all onlinePlayers for a specificTown.TownyFormatter.getRanksForTown(Town town, Translator translator) Returns a Chat Formatted List of all town residents who hold a rank.static StatusScreenGets the status screen of a Town.static doubleTownySettings.getTownBankCap(Town town) static TownySettings.TownLevelTownySettings.getTownLevel(Town town) static intTownySettings.getTownLevelFromGivenInt(int threshold, Town town) Get the town level for a given population size.static intTownySettings.getTownLevelWhichIsNotManuallySet(int residents, Town town) Gets the number of the TownLevel for towns, returning the position in the SortedMap which corresponds with the given number of residents.static TownySettings.TownLevelTownySettings.getTownLevelWithModifier(int modifier, Town town) @Nullable NationTownyAPI.getTownNationOrNull(Town town) Gets the town's nation if they have one.static doubleTownySettings.getTownNeutralityCost(Town town) static doubleTownySettings.getTownPenaltyUpkeepCost(Town town) static StringTownySettings.getTownPostfix(Town town) static StringTownySettings.getTownPrefix(Town town) TownyFormatter.getTownSubtitle(Town town, TownyWorld world, Translator translator) Returns the 2nd line of the Town StatusScreen.static doubleTownySettings.getTownUpkeepCost(Town town) static booleanTownySettings.isSellingBonusBlocks(Town town) voidTownyUniverse.registerTown(@NotNull Town town) Used to register a town into the TownyUniverse internal maps.voidTownyUniverse.registerTownUUID(@NotNull Town town) static voidTownyMessaging.sendJailList(org.bukkit.command.CommandSender sender, Town town, int page, int total) static voidTownyMessaging.sendOutpostList(org.bukkit.entity.Player player, Town town, int page, int total) static voidTownyMessaging.sendPlotGroupList(org.bukkit.command.CommandSender sender, Town town, int page, int total) static voidTownyMessaging.sendPrefixedTownMessage(Town town, Translatable message) Send a message to All online residents of a town and log preceded by the [Townname], translated for the end-user.static voidTownyMessaging.sendPrefixedTownMessage(Town town, String line) Send a message to All online residents of a town and log preceded by the [Townname]static voidTownyMessaging.sendTitleMessageToTown(Town town, String title, String subtitle) Send a Title and Subtitle to a town with default duration (70 ticks.)static voidTownyMessaging.sendTitleMessageToTown(Town town, String title, String subtitle, int duration) Send a Title and Subtitle to a town for a specified number of ticks.static voidTownyMessaging.sendTownBoard(org.bukkit.command.CommandSender sender, Town town) Send the town board to a player (in yellow)static voidTownyMessaging.sendTownMessagePrefixed(Town town, Translatable message) Send a message to All online residents of a town and log, preceded by the default_towny_prefixvoidTownyAPI.testTownClaimOrThrow(Town town, WorldCoord coordToClaim, boolean outpost, boolean newTown) Test a WorldCoord to see if Towny would allow the area to be claimed by the given town.voidTownyAPI.testTownUnclaimOrThrow(Town town, WorldCoord coordToUnclaim) Test a WorldCoord to see if Towny would allow the area to be unclaimed by the given town.voidTownyUniverse.unregisterTown(@NotNull Town town) Used to unregister a town from the TownyUniverse internal maps.
- 
Uses of Town in com.palmergames.bukkit.towny.commandMethods in com.palmergames.bukkit.towny.command that return TownModifier and TypeMethodDescriptionprotected static @NotNull TownBaseCommand.getTownFromPlayerOrThrow(org.bukkit.entity.Player player) protected static @NotNull TownBaseCommand.getTownFromResidentOrThrow(@NotNull Resident resident) protected static @NotNull TownBaseCommand.getTownOrThrow(String townName) static TownTownCommand.newTown(TownyWorld world, String name, Resident resident, Coord key, org.bukkit.Location spawn, org.bukkit.entity.Player player) static TownTownCommand.newTown(TownyWorld world, String name, Resident resident, Coord key, org.bukkit.Location spawn, org.bukkit.entity.Player player, double cost) Methods in com.palmergames.bukkit.towny.command with parameters of type TownModifier and TypeMethodDescriptionprotected static @NotNull NationBaseCommand.getNationFromTownOrThrow(Town town) TownyCommand.getTownyPrices(Town town, Translator translator) Returns prices for town's taxes/upkeep.static voidTownyAdminCommand.handleTownMetaCommand(org.bukkit.command.CommandSender sender, Town town, String[] split) static voidFinal stage of adding a town to a nation, via joining or via accepting an invite.static Nationstatic voidNationCommand.newNation(org.bukkit.command.CommandSender sender, String name, Town capitalTown, boolean noCharge) Ties together the player-run /new nation and the admin-run /ta nation new NAME CAPITAL code.voidPlotCommand.parseDistrictAdd(String[] split, TownBlock townBlock, org.bukkit.entity.Player player, Town town) voidPlotCommand.parseDistrictDelete(TownBlock townBlock, org.bukkit.entity.Player player, Town town) voidPlotCommand.parseDistrictRemove(TownBlock townBlock, org.bukkit.entity.Player player, Town town) voidPlotCommand.parsePlotGroupAdd(String[] split, TownBlock townBlock, org.bukkit.entity.Player player, Town town) voidPlotCommand.parsePlotGroupDelete(TownBlock townBlock, org.bukkit.entity.Player player, Town town) voidPlotCommand.parsePlotGroupForSale(String[] split, Resident resident, TownBlock townBlock, org.bukkit.entity.Player player, Town town) voidPlotCommand.parsePlotGroupNotForSale(Resident resident, TownBlock townBlock, org.bukkit.entity.Player player, Town town) voidPlotCommand.parsePlotGroupRemove(TownBlock townBlock, org.bukkit.entity.Player player, Town town) voidPlotCommand.parsePlotGroupSet(String[] split, Resident resident, TownBlock townBlock, org.bukkit.entity.Player player, Town town) voidPlotCommand.parsePlotGroupSetPerm(String[] args, TownBlock townBlock, org.bukkit.entity.Player player, Town town, PlotGroup plotGroup, TownBlockOwner townBlockOwner) voidPlotCommand.parsePlotGroupSetTownBlockType(String[] split, Resident resident, TownBlock townBlock, PlotGroup group, org.bukkit.entity.Player player, Town town) static voidTownCommand.parseTownMergeCommand(org.bukkit.command.CommandSender sender, String[] args, @NotNull Town remainingTown, boolean admin) static voidTownCommand.parseTownOutlawCommand(org.bukkit.command.CommandSender sender, String[] split, boolean admin, Town town) static voidTownCommand.parseTownTrustCommand(org.bukkit.command.CommandSender sender, String[] args, @Nullable Town town) static voidTownCommand.parseTownTrustTownCommand(org.bukkit.command.CommandSender sender, String[] args, @Nullable Town town) static voidTownCommand.setTownBlockOwnerPermissions(org.bukkit.command.CommandSender sender, Town town, String[] split) static voidTownCommand.setTownForSale(Town town, double price, boolean admin) static voidTownCommand.setTownNotForSale(Town town, boolean admin) static voidChecks if the player is allowed to handle adding invites, then checks through a list of names to be invited, or to have their invites revoked.static voidTownCommand.townAddResident(Town town, Resident resident) static voidTownCommand.townAddResidents(org.bukkit.command.CommandSender sender, Town town, List<Resident> invited) static voidTownCommand.townBuy(org.bukkit.command.CommandSender sender, String[] split, @Nullable Town town, boolean admin) static voidTownCommand.townBuyBonus(Town town, String[] split, org.bukkit.command.CommandSender sender) Town tries to buy bonus blocks or checks the cost and increase.static voidTownCommand.townBuyBonusTownBlocks(Town town, int inputN, org.bukkit.command.CommandSender sender) Town buys bonus blocks after checking the configured maximum.static voidTownCommand.townRename(org.bukkit.command.CommandSender sender, Town town, String newName) static voidTownCommand.townSet(org.bukkit.command.CommandSender sender, String[] split, boolean admin, Town town) static voidTownCommand.townSetBoard(org.bukkit.command.CommandSender sender, String board, Town town) static voidTownCommand.townSetEmbassyPrice(org.bukkit.command.CommandSender sender, String[] split, boolean admin, Town town) static voidTownCommand.townSetEmbassyTax(org.bukkit.command.CommandSender sender, String[] split, boolean admin, Town town) static voidTownCommand.townSetHomeblock(org.bukkit.command.CommandSender sender, Town town) static voidTownCommand.townSetMapColor(org.bukkit.command.CommandSender sender, String[] split, Town town) static voidTownCommand.townSetMayor(org.bukkit.command.CommandSender sender, String[] split, boolean admin, Town town, Resident resident) static voidTownCommand.townSetName(org.bukkit.command.CommandSender sender, String[] split, Town town) static voidTownCommand.townSetOutpost(org.bukkit.command.CommandSender sender, Town town) static voidTownCommand.townSetPlotPrice(org.bukkit.command.CommandSender sender, String[] split, boolean admin, Town town) static voidTownCommand.townSetPlotTax(org.bukkit.command.CommandSender sender, String[] split, boolean admin, Town town) static voidTownCommand.townSetPrimaryJail(org.bukkit.command.CommandSender sender, Town town) static voidTownCommand.townSetShopPrice(org.bukkit.command.CommandSender sender, String[] split, boolean admin, Town town) static voidTownCommand.townSetShopTax(org.bukkit.command.CommandSender sender, String[] split, boolean admin, Town town) static voidTownCommand.townSetSpawn(org.bukkit.command.CommandSender sender, Town town, boolean admin) static voidTownCommand.townSetSpawnCost(org.bukkit.command.CommandSender sender, String[] split, boolean admin, Town town) static voidTownCommand.townSetTag(org.bukkit.command.CommandSender sender, String[] split, boolean admin, Town town) static voidTownCommand.townSetTaxes(org.bukkit.command.CommandSender sender, String[] split, boolean admin, Town town) static voidTownCommand.townSetTaxPercent(org.bukkit.command.CommandSender sender, String[] split, Town town) static voidTownCommand.townToggle(org.bukkit.command.CommandSender sender, String[] split, boolean admin, Town town) Method parameters in com.palmergames.bukkit.towny.command with type arguments of type Town
- 
Uses of Town in com.palmergames.bukkit.towny.dbMethods in com.palmergames.bukkit.towny.db with parameters of type TownModifier and TypeMethodDescriptionabstract voidTownyDataSource.deleteTown(Town town) voidTownyFlatFileSource.deleteTown(Town town) voidTownySQLSource.deleteTown(Town town) TownyFlatFileSource.getTownFilename(Town town) abstract booleanbooleanbooleanvoidMerges the mergeFrom town into the mergeInto town.abstract voidbooleanTownyDatabaseHandler.removeTown(@NotNull Town town, DeleteTownEvent.Cause cause, @Nullable org.bukkit.command.CommandSender sender, boolean delayFullRemoval) booleanTownyDataSource.removeTown(@NotNull Town town, DeleteTownEvent.Cause cause, @Nullable org.bukkit.command.CommandSender sender) abstract booleanTownyDataSource.removeTown(@NotNull Town town, DeleteTownEvent.Cause cause, @Nullable org.bukkit.command.CommandSender sender, boolean delayFullRemoval) voidTownyDataSource.removeTown(Town town) Deprecated.since 0.100.2.9 useTownyDataSource.removeTown(Town, com.palmergames.bukkit.towny.event.DeleteTownEvent.Cause)instead.booleanTownyDataSource.removeTown(Town town, DeleteTownEvent.Cause cause) voidTownyDatabaseHandler.removeTownBlocks(Town town) abstract voidTownyDataSource.removeTownBlocks(Town town) voidTownyDatabaseHandler.renameTown(Town town, String newName) abstract voidTownyDataSource.renameTown(Town town, String newName) abstract booleanbooleanboolean
- 
Uses of Town in com.palmergames.bukkit.towny.eventMethods in com.palmergames.bukkit.towny.event that return TownModifier and TypeMethodDescription@Nullable TownTownSpawnEvent.getFromTown()Gets the town being teleported from.TownSpawnEvent.getToTown()Gets the town that the player is teleporting to.BonusBlockPurchaseCostCalculationEvent.getTown()Returns the target Town.NationAddTownEvent.getTown()NationPreAddTownEvent.getTown()NationRemoveTownEvent.getTown()NewTownEvent.getTown()PreDeleteTownEvent.getTown()RenameTownEvent.getTown()TownAddResidentEvent.getTown()TownAddResidentRankEvent.getTown()TownBlockClaimCostCalculationEvent.getTown()Returns the target Town.TownBlockSettingsChangedEvent.getTown()TownClaimEvent.getTown()TownPreAddResidentEvent.getTown()TownPreClaimEvent.getTown()The town which is claiming this TownBlock IfTownPreClaimEvent.isHomeblockis true, then this could be the first TownBlock claimed by a town upon Town-creation.TownPreRenameEvent.getTown()TownRemoveResidentEvent.getTown()TownRemoveResidentRankEvent.getTown()TownUpkeepCalculationEvent.getTown()TownUpkeepPenalityCalculationEvent.getTown()Constructors in com.palmergames.bukkit.towny.event with parameters of type TownModifierConstructorDescriptionBonusBlockPurchaseCostCalculationEvent(Town town, double price, int plotAmount) DeleteTownEvent(@NotNull Town town, @Nullable Resident mayor, @NotNull DeleteTownEvent.Cause cause, @Nullable org.bukkit.command.CommandSender sender) NationAddTownEvent(Town town, Nation nation) NationPreAddTownEvent(Nation nation, Town town) NationRemoveTownEvent(Town town, Nation nation) NewTownEvent(Town town) PreDeleteTownEvent(@NotNull Town town, DeleteTownEvent.Cause cause, @Nullable org.bukkit.command.CommandSender sender) RenameTownEvent(String oldName, Town town) TownAddResidentEvent(Resident resident, Town town) TownAddResidentRankEvent(Resident resident, String rank, Town town) TownBlockClaimCostCalculationEvent(Town town, double price, int plotAmount) TownPreAddResidentEvent(Town town, Resident resident) TownPreClaimEvent(Town town, TownBlock townBlock, org.bukkit.entity.Player player, boolean isOutpost, boolean isHomeblock, boolean isOverClaim) This event runs when a town is made and when a town attempts to claim land.TownPreRenameEvent(Town town, String newName) TownRemoveResidentEvent(Resident resident, Town town) TownRemoveResidentRankEvent(Resident resident, String rank, Town town) TownUpkeepCalculationEvent(Town town, double upkeep) TownUpkeepPenalityCalculationEvent(Town town, double upkeep) 
- 
Uses of Town in com.palmergames.bukkit.towny.event.damageMethods in com.palmergames.bukkit.towny.event.damage that return TownModifier and TypeMethodDescription@Nullable TownTownyPlayerDamagePlayerEvent.getAttackerTown()@NotNull TownTownBlockExplosionTestEvent.getTown()@Nullable TownTownBlockPVPTestEvent.getTown()@Nullable TownTownyDamageEvent.getTown()TheTownwhere the damage has happened.@Nullable TownTownyPlayerDamagePlayerEvent.getVictimTown()Constructors in com.palmergames.bukkit.towny.event.damage with parameters of type TownModifierConstructorDescriptionTownBlockExplosionTestEvent(TownBlock townBlock, Town town, boolean explosion) 
- 
Uses of Town in com.palmergames.bukkit.towny.event.deathpriceFields in com.palmergames.bukkit.towny.event.deathprice declared as TownMethods in com.palmergames.bukkit.towny.event.deathprice that return TownConstructors in com.palmergames.bukkit.towny.event.deathprice with parameters of type TownModifierConstructorDescriptionTownPaysDeathPriceEvent(Account payer, double amount, Resident deadResident, org.bukkit.entity.Player killer, Town town) 
- 
Uses of Town in com.palmergames.bukkit.towny.event.economyMethods in com.palmergames.bukkit.towny.event.economy that return TownModifier and TypeMethodDescriptionTownEntersBankruptcyEvent.getTown()TownPreTransactionEvent.getTown()TownTransactionEvent.getTown()Constructors in com.palmergames.bukkit.towny.event.economy with parameters of type TownModifierConstructorDescriptionAn event thrown when aTownbecomes bankrupt.TownPreTransactionEvent(Town town, Transaction transaction) An Cancellable event thrown when aTownBankAccountis about to either receive or pay money.TownTransactionEvent(Town town, Transaction transaction) An event thrown when aTownBankAccounteither receives or pays money.
- 
Uses of Town in com.palmergames.bukkit.towny.event.nationMethods in com.palmergames.bukkit.towny.event.nation that return TownModifier and TypeMethodDescriptionNationPreInviteTownEvent.getInvitedTown()Convenience method for getting the town that was invited.NationPreTownKickEvent.getTown()NationPreTownLeaveEvent.getTown()NationSanctionTownAddEvent.getTown()NationSanctionTownRemoveEvent.getTown()NationTownLeaveEvent.getTown()PreNewNationEvent.getTown()Constructors in com.palmergames.bukkit.towny.event.nation with parameters of type TownModifierConstructorDescriptionNationPreTownKickEvent(Nation nation, Town town) Cancellable event thrown when a nation kicks a town using /n kick.NationPreTownLeaveEvent(Nation nation, Town town) Cancellable event thrown when a player in charge of a town uses /n leave, to leave the nation they are joined in.NationSanctionTownAddEvent(Nation nation, Town town) NationSanctionTownRemoveEvent(Nation nation, Town town) NationTownLeaveEvent(Nation nation, Town town) Event thrown when a player in charge of a town uses /n leave, to leave the nation they are joined in.PreNewNationEvent(Town town, String nationName) 
- 
Uses of Town in com.palmergames.bukkit.towny.event.playerMethods in com.palmergames.bukkit.towny.event.player that return TownModifier and TypeMethodDescriptionPlayerEntersIntoTownBorderEvent.getEnteredTown()PlayerExitsFromTownBorderEvent.getLeftTown()@Nullable TownPlayerKeepsExperienceEvent.getTownOrNull()@Nullable TownPlayerKeepsInventoryEvent.getTownOrNull()Constructors in com.palmergames.bukkit.towny.event.player with parameters of type TownModifierConstructorDescriptionPlayerEntersIntoTownBorderEvent(org.bukkit.entity.Player player, WorldCoord to, WorldCoord from, Town enteredTown, org.bukkit.event.player.PlayerMoveEvent pme) PlayerExitsFromTownBorderEvent(org.bukkit.entity.Player player, WorldCoord to, WorldCoord from, Town leftTown, org.bukkit.event.player.PlayerMoveEvent pme) 
- 
Uses of Town in com.palmergames.bukkit.towny.event.plotMethods in com.palmergames.bukkit.towny.event.plot that return Town
- 
Uses of Town in com.palmergames.bukkit.towny.event.plot.toggleMethods in com.palmergames.bukkit.towny.event.plot.toggle that return Town
- 
Uses of Town in com.palmergames.bukkit.towny.event.residentMethods in com.palmergames.bukkit.towny.event.resident that return TownModifier and TypeMethodDescriptionResidentJailEvent.getJailTown()ResidentPreJailEvent.getJailTown()
- 
Uses of Town in com.palmergames.bukkit.towny.event.statusscreenMethods in com.palmergames.bukkit.towny.event.statusscreen that return TownConstructors in com.palmergames.bukkit.towny.event.statusscreen with parameters of type Town
- 
Uses of Town in com.palmergames.bukkit.towny.event.teleportMethods in com.palmergames.bukkit.towny.event.teleport that return TownModifier and TypeMethodDescription@Nullable TownResidentSpawnEvent.getFromTown()Gets the town being teleported from.@Nullable TownOutlawTeleportEvent.getOutlawTownOrNull()ResidentSpawnEvent.getToTown()Gets the town that the player is teleporting to.OutlawTeleportEvent.getTown()Constructors in com.palmergames.bukkit.towny.event.teleport with parameters of type TownModifierConstructorDescriptionOutlawTeleportEvent(Resident outlaw, Town town, org.bukkit.Location loc) 
- 
Uses of Town in com.palmergames.bukkit.towny.event.time.dailytaxesMethods in com.palmergames.bukkit.towny.event.time.dailytaxes that return TownModifier and TypeMethodDescriptionPreTownPaysNationTaxEvent.getTown()TownPaysNationConqueredTaxEvent.getTown()Constructors in com.palmergames.bukkit.towny.event.time.dailytaxes with parameters of type TownModifierConstructorDescriptionPreTownPaysNationTaxEvent(Town town, Nation nation, double tax) Cancellable event that precedes a town paying the nation tax.TownPaysNationConqueredTaxEvent(Town town, Nation nation, double tax) Cancellable event that precedes a town paying the nation's conquered tax.
- 
Uses of Town in com.palmergames.bukkit.towny.event.townMethods in com.palmergames.bukkit.towny.event.town that return TownModifier and TypeMethodDescriptionTownAddAlliedTownEvent.getNewAlly()TownAddEnemiedTownEvent.getNewEnemy()TownMergeEvent.getRemainingTown()TownPreMergeEvent.getRemainingTown()TownRemoveAlliedTownEvent.getRemovedAlly()TownRemoveEnemiedTownEvent.getRemovedEnemy()TownPreMergeEvent.getSuccumbingTown()TownAddAlliedTownEvent.getTown()TownAddEnemiedTownEvent.getTown()TownCalculateMaxTownBlocksEvent.getTown()TownCalculateTownLevelNumberEvent.getTown()TownConqueredEvent.getTown()The town which has become conquered.TownIsTownOverClaimedEvent.getTown()TownKickEvent.getTown()TownLeaveEvent.getTown()TownLevelDecreaseEvent.getTown()The town which has had its Town_Level decrease.TownLevelIncreaseEvent.getTown()The town which has had its Town_Level increase.TownListDisplayedNumResidentsCalculationEvent.getTown()TownMapColourLocalCalculationEvent.getTown()TownMapColourNationalCalculationEvent.getTown()TownMayorChangedEvent.getTown()TownMayorChangeEvent.getTown()TownMayorChosenBySuccessionEvent.getTown()TownOutlawAddEvent.getTown()TownOutlawRemoveEvent.getTown()TownPreInvitePlayerEvent.getTown()Convenience method for getting the town that sent the invite.@Nullable TownTownPreReclaimEvent.getTown()TownPreRemoveResidentEvent.getTown()TownPreRuinedEvent.getTown()TownPreSetHomeBlockEvent.getTown()TownPreUnclaimCmdEvent.getTown()@Nullable TownTownPreUnclaimEvent.getTown()TownReclaimedEvent.getTown()The ruined town which has been reclaimed.TownRemoveAlliedTownEvent.getTown()TownRemoveEnemiedTownEvent.getTown()TownRuinedEvent.getTown()The town which is falling into ruin.@NotNull TownTownSetOutpostSpawnEvent.getTown()@NotNull TownTownSetSpawnEvent.getTown()TownTrustAddEvent.getTown()TownTrustRemoveEvent.getTown()TownTrustTownAddEvent.getTown()TownTrustTownRemoveEvent.getTown()@Nullable TownTownUnclaimEvent.getTown()TownUnconquerEvent.getTown()TownCedePlotEvent.getTownGivingPlot()TownCedePlotEvent.getTownReceivingPlot()TownTrustTownAddEvent.getTrustedTown()TownTrustTownRemoveEvent.getTrustedTown()Constructors in com.palmergames.bukkit.towny.event.town with parameters of type TownModifierConstructorDescriptionTownAddAlliedTownEvent(Town town, Town newAlly) TownAddEnemiedTownEvent(Town town, Town newAlly) TownCalculateMaxTownBlocksEvent(Town town, int townBlockCount) TownCalculateTownLevelNumberEvent(Town town, int predeterminedLevelNumber) An event that is thrown which allows other plugins to alter a Town's TownLevel Number. ie: 1 toTownySettings.getTownLevelMax().TownCedePlotEvent(Town townGivingPlot, Town townGainingPlot, TownBlock townBlock) TownConqueredEvent(Town town) TownLeaveEvent(Resident resident, Town town) TownLevelDecreaseEvent(Town town) TownLevelIncreaseEvent(Town town) TownListDisplayedNumResidentsCalculationEvent(int displayedValue, Town town) TownMapColourLocalCalculationEvent(Town town, String mapColorHexCode) TownMapColourNationalCalculationEvent(Town town, String mapColorHexCode) TownMergeEvent(Town remainingTown, String succumbingTownName, UUID succumbingTownUUID) TownOutlawAddEvent(org.bukkit.command.CommandSender sender, Resident outlawedResident, Town town) TownOutlawRemoveEvent(org.bukkit.command.CommandSender sender, Resident outlawedResident, Town town) TownPreMergeEvent(Town remainingTown, Town succumbingTown) TownPreReclaimEvent(Town town, Resident resident, org.bukkit.entity.Player player) TownPreRemoveResidentEvent(Resident resident, Town town) TownPreRuinedEvent(Town town, DeleteTownEvent.Cause cause, org.bukkit.command.CommandSender sender) TownPreSetHomeBlockEvent(Town town, TownBlock townBlock, org.bukkit.entity.Player player) TownPreUnclaimCmdEvent(Town town, Resident resident, TownyWorld world, List<WorldCoord> selection) Constructs the TownPreUnclaimCmdEvent and stores data an external war plugin may use.TownPreUnclaimEvent(Town town, TownBlock townBlock) TownReclaimedEvent(Town town, Resident resident) TownRemoveAlliedTownEvent(Town town, Town newAlly) TownRemoveEnemiedTownEvent(Town town, Town newAlly) TownRuinedEvent(Town town, String oldMayorName) TownSetOutpostSpawnEvent(Town town, org.bukkit.entity.Player player, org.bukkit.Location newSpawn) TownSetSpawnEvent(Town town, org.bukkit.entity.Player player, org.bukkit.Location newSpawn) TownTrustAddEvent(org.bukkit.command.CommandSender sender, Resident trustedResident, Town town) TownTrustRemoveEvent(org.bukkit.command.CommandSender sender, Resident trustedResident, Town town) TownTrustTownAddEvent(org.bukkit.command.CommandSender sender, Town trustTown, Town town) TownTrustTownRemoveEvent(org.bukkit.command.CommandSender sender, Town trustTown, Town town) TownUnclaimEvent(Town town, WorldCoord worldCoord, boolean isOverClaim) TownUnconquerEvent(Town town) 
- 
Uses of Town in com.palmergames.bukkit.towny.event.town.toggleMethods in com.palmergames.bukkit.towny.event.town.toggle that return TownConstructors in com.palmergames.bukkit.towny.event.town.toggle with parameters of type TownModifierConstructorDescriptionTownToggleEvent(org.bukkit.command.CommandSender sender, Town town, boolean admin) A generic cancellable event thrown when a player uses the /town toggle {args} command.TownToggleExplosionEvent(org.bukkit.command.CommandSender sender, Town town, boolean admin, boolean newState) TownToggleFireEvent(org.bukkit.command.CommandSender sender, Town town, boolean admin, boolean newState) TownToggleMobsEvent(org.bukkit.command.CommandSender sender, Town town, boolean admin, boolean newState) TownToggleNationZoneEvent(org.bukkit.command.CommandSender sender, Town town, boolean admin, boolean newState) TownToggleNeutralEvent(org.bukkit.command.CommandSender sender, Town town, boolean admin, boolean newState) TownToggleOpenEvent(org.bukkit.command.CommandSender sender, Town town, boolean admin, boolean newState) TownTogglePublicEvent(org.bukkit.command.CommandSender sender, Town town, boolean admin, boolean newState) TownTogglePVPEvent(org.bukkit.command.CommandSender sender, Town town, boolean admin, boolean newState) TownToggleTaxPercentEvent(org.bukkit.command.CommandSender sender, Town town, boolean admin, boolean newState) TownToggleUnknownEvent(org.bukkit.command.CommandSender sender, Town town, boolean admin, String[] args) An event to be used by other plugins to simulate a /nation toggle {arguments} command.
- 
Uses of Town in com.palmergames.bukkit.towny.event.townblockstatusMethods in com.palmergames.bukkit.towny.event.townblockstatus that return TownConstructors in com.palmergames.bukkit.towny.event.townblockstatus with parameters of type TownModifierConstructorDescriptionEvent thrown when Towny would return a TownBlockStatus of NationZone, used by the Towny PlayerCache, which would provide a protective bubble surrounding towns which belong to nations.
- 
Uses of Town in com.palmergames.bukkit.towny.exceptionsMethods in com.palmergames.bukkit.towny.exceptions that return TownMethods in com.palmergames.bukkit.towny.exceptions with parameters of type TownConstructors in com.palmergames.bukkit.towny.exceptions with parameters of type TownModifierConstructorDescriptionEmptyTownException(Town town) EmptyTownException(Town town, EmptyNationException emptyNationException) 
- 
Uses of Town in com.palmergames.bukkit.towny.objectMethods in com.palmergames.bukkit.towny.object that return TownModifier and TypeMethodDescriptionNation.getCapital()TownyWorld.getClosestTownWithNationFromCoord(Coord key, Town nearestTown) Returns the closest town with a nation from a given coord (key).Resident.getJailTown()District.getTown()PlotGroup.getTown()Resident.getTown()TownBlock.getTown()@Nullable TownResident.getTownOrNull()Relatively safe to use after confirming there is a town usingResident.hasTown().@Nullable TownTownBlock.getTownOrNull()Relatively safe to use after confirmingTownBlock.hasTown()is true orTownyAPI.isWilderness(org.bukkit.Location)is false.@Nullable TownWorldCoord.getTownOrNull()Relatively safe to use ifWorldCoord.hasTownBlock()has already been used.Methods in com.palmergames.bukkit.towny.object that return types with arguments of type TownModifier and TypeMethodDescriptionNation.gatherOutOfRangeTowns(List<Town> towns, Town capital) Deprecated.since 0.100.0.9 useProximityUtil.gatherOutOfRangeTowns(Nation)instead.Town.getAllies()Resident.getEmbassyTowns()Gets a list of Towns which the given resident owns embassy plots in.Town.getEnemies()Town.getMutualAllies()Nation.getSanctionedTowns()Nation.getTowns()TownyWorld.getTowns()Resident.getTownsOutlawedIn()Town.getTrustedTowns()Methods in com.palmergames.bukkit.towny.object with parameters of type TownModifier and TypeMethodDescriptionvoidvoidvoidNation.addSanctionedTown(Town town) voidvoidvoidTown.addTrustedTown(Town town) voidNation.forceSetCapital(Town capital) Only to be called from the loading methods.Nation.gatherOutOfRangeTowns(List<Town> towns, Town capital) Deprecated.since 0.100.0.9 useProximityUtil.gatherOutOfRangeTowns(Nation)instead.TownyWorld.getClosestTownWithNationFromCoord(Coord key, Town nearestTown) Returns the closest town with a nation from a given coord (key).intTownyWorld.getMinDistanceFromOtherPlotsOwnedByTown(Coord key, Town town) Returns the distance to the closest townblock from the given coord, for the give town.intTownyWorld.getMinDistanceFromOtherTownsHomeBlocks(Coord key, Town homeTown) Checks the distance from a another town's homeblock, or the distance to another Town if homeTown is null.intTownyWorld.getMinDistanceFromOtherTownsPlots(Coord key, Town homeTown) Checks the distance from a another town's plots.doubledoubleTownyWorld.getTownBlocks(Town town) booleanbooleanbooleanTown.hasMutualAlly(Town town) booleanNation.hasSanctionedTown(Town town) booleanbooleanbooleanbooleanTown.hasTrustedTown(Town town) booleanTown.isAlliedWith(Town othertown) booleanvoidTown.removeAlly(Town town) voidTown.removeEnemy(Town town) voidNation.removeSanctionedTown(Town town) protected voidNation.removeTown(Town town) Should only be called by Town.removeNation(); Removes town fromNation.townslist and will choose a new Capital if necessary.voidTownyWorld.removeTown(Town town) voidTown.removeTrustedTown(Town town) voidResident.removeTrustInTown(Town town) voidNation.setCapital(Town capital) voidvoidvoidvoidvoidvoidMethod parameters in com.palmergames.bukkit.towny.object with type arguments of type TownModifier and TypeMethodDescriptionNation.gatherOutOfRangeTowns(List<Town> towns, Town capital) Deprecated.since 0.100.0.9 useProximityUtil.gatherOutOfRangeTowns(Nation)instead.voidTown.loadAllies(List<Town> towns) Only to be used when loading the database.voidTown.loadEnemies(List<Town> towns) Only to be used when loading the database.voidTown.loadTrustedTowns(List<Town> towns) Only to be used when loading the database.Constructors in com.palmergames.bukkit.towny.object with parameters of type Town
- 
Uses of Town in com.palmergames.bukkit.towny.object.comparatorsFields in com.palmergames.bukkit.towny.object.comparators with type parameters of type TownModifier and TypeFieldDescriptionstatic final Comparator<Town> TownComparators.BY_BANKRUPTstatic final Comparator<Town> TownComparators.BY_RUINED
- 
Uses of Town in com.palmergames.bukkit.towny.object.inviteobjectsConstructors in com.palmergames.bukkit.towny.object.inviteobjects with parameters of type TownModifierConstructorDescriptionPlayerJoinTownInvite(org.bukkit.command.CommandSender directSender, Resident receiver, Town sender) TownJoinNationInvite(org.bukkit.command.CommandSender directSender, Town receiver, Nation sender) 
- 
Uses of Town in com.palmergames.bukkit.towny.object.jailMethods in com.palmergames.bukkit.towny.object.jail that return TownMethods in com.palmergames.bukkit.towny.object.jail with parameters of type TownConstructors in com.palmergames.bukkit.towny.object.jail with parameters of type Town
- 
Uses of Town in com.palmergames.bukkit.towny.object.notificationMethods in com.palmergames.bukkit.towny.object.notification that return TownConstructors in com.palmergames.bukkit.towny.object.notification with parameters of type Town
- 
Uses of Town in com.palmergames.bukkit.towny.object.spawnlevelMethods in com.palmergames.bukkit.towny.object.spawnlevel with parameters of type TownModifier and TypeMethodDescriptionvoidTownSpawnLevel.checkIfAllowed(org.bukkit.entity.Player player, Town town) double
- 
Uses of Town in com.palmergames.bukkit.towny.permissionsMethods in com.palmergames.bukkit.towny.permissions with parameters of type TownModifier and TypeMethodDescriptionTownyPerms.getTownRanks(Town town) static voidTownyPerms.updateTownPerms(Town town) Update the permissions for all residents of a town (if online)
- 
Uses of Town in com.palmergames.bukkit.towny.tasksMethods in com.palmergames.bukkit.towny.tasks with parameters of type TownModifier and TypeMethodDescriptionprotected voidDailyTimerTask.collectTownTaxes(Town town) Collect taxes due to the town from it's residents.Constructors in com.palmergames.bukkit.towny.tasks with parameters of type TownModifierConstructorDescriptionResidentPurge(org.bukkit.command.CommandSender sender, long deleteTime, boolean townless, @Nullable Town town) ResidentPurge(org.bukkit.command.CommandSender sender, long deleteTime, boolean townless, @Nullable Town town, boolean removeTown) TownClaim(Towny plugin, org.bukkit.entity.Player player, Town town, List<WorldCoord> selection, boolean isOutpost, boolean claim, boolean forced) TownClaim(Towny plugin, org.bukkit.entity.Player player, Town town, List<WorldCoord> selection, boolean isOutpost, boolean claim, boolean forced, boolean isOverClaim) 
- 
Uses of Town in com.palmergames.bukkit.towny.utilsMethods in com.palmergames.bukkit.towny.utils that return types with arguments of type TownModifier and TypeMethodDescriptionProximityUtil.gatherOutOfRangeTowns(Nation nation) ProximityUtil.gatherOutOfRangeTowns(Nation nation, Town capital) Methods in com.palmergames.bukkit.towny.utils with parameters of type TownModifier and TypeMethodDescriptionstatic voidNationUtil.addNationComponenents(Town town, StatusScreen screen, Translator translator) static voidOutpostUtil.addOutpostComponent(Town town, StatusScreen screen, Translator translator) static voidTownRuinUtil.addRuinedComponents(Town town, StatusScreen screen, Translator translator) static voidMoneyUtil.addTownMoneyComponents(Town town, Translator translator, StatusScreen screen) Populates the StatusScreen with the various bank and money components.static voidProximityUtil.allowTownClaimOrThrow(TownyWorld world, WorldCoord townBlockToClaim, @Nullable Town town, boolean outpost) static voidProximityUtil.allowTownClaimOrThrow(TownyWorld world, WorldCoord townBlockToClaim, @Nullable Town town, boolean outpost, boolean trade) static voidProximityUtil.allowTownHomeBlockOrThrow(TownyWorld world, Coord key, @Nullable Town town, boolean newTown) static voidProximityUtil.allowTownUnclaimOrThrow(TownyWorld world, WorldCoord townBlockToUnclaim, @Nullable Town town) static voidTownUtil.checkNationResidentsRequirementsOfTown(Town town) static voidJailUtil.createJailPlot(TownBlock townBlock, Town town, org.bukkit.Location location) static booleanAreaSelectionUtil.filterHomeBlock(Town town, List<WorldCoord> selection) static List<WorldCoord> AreaSelectionUtil.filterInvalidProximityToHomeblock(List<WorldCoord> selection, Town town) Returns a list containing only townblocks that can be claimed.static List<WorldCoord> AreaSelectionUtil.filterInvalidProximityTownBlocks(List<WorldCoord> selection, Town town) Returns a list containing only townblocks that can be claimed.ProximityUtil.gatherOutOfRangeTowns(Nation nation, Town capital) static doubleMoneyUtil.getEstimatedValueOfTown(Town town) Get estimated value of town Useful when calculating the allowed debt cap for a town Covers new town costs, claimed land costs, purchased outposts costs.static @NotNull BorderUtil.FloodfillResultBorderUtil.getFloodFillableCoords(@NotNull Town town, @NotNull WorldCoord origin) static intTownUtil.getMaxAllowedNumberOfResidentsWithoutNation(Town town) static intTownRuinUtil.getTimeSinceRuining(Town town) static doubleMoneyUtil.getTownDebtCap(Town town, double upkeep) ResidentUtil.getValidatedResidentsOfTown(org.bukkit.command.CommandSender sender, Town town, String[] names) Transforms a String[] of names to a list of Residents.static booleanIs town b an ally of town a?static booleanIs town b an enemy of town a?static booleanCombatUtil.isSameNation(Town a, Town b) Is town b in a nation with town a?static booleanCombatUtil.isSameTown(Town a, Town b) Is town b the same town as town a?static booleanAreaSelectionUtil.isTooCloseToHomeBlock(WorldCoord wc, Town town) Is the WorldCoord too close to another town's HomeBlock.static booleanProximityUtil.isTownCloseEnoughToNation(Town town, Town newCapital, List<Town> townsToCheck, List<Town> validTowns) static booleanProximityUtil.isTownTooFarFromNation(Town town, Town newCapital, List<Town> towns) static voidJailUtil.maxJailedUnjail(Town town) static voidResidentUtil.outlawEnteredTown(Resident outlaw, Town town, org.bukkit.Location location) Method which will teleport an outlaw out of a town, if the player does not have the bypass node and the outlaw teleport feature is active.static voidSpawnUtil.outlawTeleport(Town town, Resident outlaw) Handles moving outlaws from outside of towns they are outlawed in.static booleanOutpostUtil.OutpostTests(Town town, Resident resident, TownyWorld world, Coord key, boolean isAdmin, boolean isPlotSetOutpost) Checks to make sure all requirements are met before an outpost can be claimed.static voidTownRuinUtil.putTownIntoRuinedState(Town town) Put town into ruined state: 1.static voidTownRuinUtil.reclaimTown(@NotNull Resident resident, @NotNull Town town) static voidResidentUtil.reduceResidentCountToFitTownMaxPop(Town town) Method to remove the newest residents in order to bring a town's population low enough to meet the population cap.static doubleMoneyUtil.returnPurchasedBlocksCost(int alreadyPurchased, int toPurchase, Town town) static voidProximityUtil.testAdjacentAddDistrictRulesOrThrow(WorldCoord townBlockToClaim, Town town, District district, int minAdjacentBlocks) static voidProximityUtil.testAdjacentClaimsRulesOrThrow(WorldCoord townBlockToClaim, Town town, boolean outpost) static voidProximityUtil.testAdjacentClaimsRulesOrThrow(WorldCoord townBlockToClaim, Town town, boolean outpost, int minAdjacentBlocks) static voidProximityUtil.testAdjacentRemoveDistrictRulesOrThrow(WorldCoord districtCoordBeingRemoved, Town town, District district, int minAdjacentBlocks) static voidProximityUtil.testAdjacentUnclaimsRulesOrThrow(WorldCoord townBlockToUnclaim, Town town) static voidProximityUtil.testAdjacentUnclaimsRulesOrThrow(WorldCoord townBlockToUnclaim, Town town, int minAdjacentBlocks) static voidProximityUtil.testTownProximityToNation(Town town, Nation nation) static booleanTownUtil.townCanHaveThisAmountOfResidents(Town town, int residentCount, boolean isCapital) static voidMoneyUtil.townDeposit(org.bukkit.entity.Player player, Resident resident, Town town, Nation nation, int amount) static booleanTownUtil.townHasEnoughResidentsToBeANationCapital(Town town) static booleanTownUtil.townHasEnoughResidentsToJoinANation(Town town) static voidMoneyUtil.townWithdraw(org.bukkit.entity.Player player, Resident resident, Town town, int amount) Method parameters in com.palmergames.bukkit.towny.utils with type arguments of type Town
- 
Uses of Town in com.palmergames.bukkit.utilMethods in com.palmergames.bukkit.util with parameters of type Town
NationCommand.nationAdd(Nation, Town)instead.