Uses of Class
com.palmergames.bukkit.towny.object.Resident
Packages that use Resident
Package
Description
-
Uses of Resident in com.palmergames.bukkit.towny
Methods in com.palmergames.bukkit.towny that return ResidentModifier and TypeMethodDescription@Nullable ResidentTownyAPI.getResident(String name) Gets the resident from the given name.@Nullable ResidentTownyAPI.getResident(UUID uuid) Gets the resident from the given UUID.@Nullable ResidentTownyAPI.getResident(org.bukkit.entity.Player player) Gets the resident from the given Player.@Nullable ResidentTownyUniverse.getResident(@NotNull String residentName) Get the resident matching the passed in name.@Nullable ResidentTownyUniverse.getResident(@NotNull UUID residentUUID) Get the resident with the passed-in UUID.@Nullable ResidentTownyAPI.getResidentOrNull(TownBlock townBlock) @NotNull ResidentTownyAPI.getResidentOrThrow(@Nullable org.bukkit.entity.Player player) Gets the resident from the given Player or throws a TownyException if that isn't possible.Methods in com.palmergames.bukkit.towny that return types with arguments of type ResidentModifier and TypeMethodDescriptionTownyUniverse.getJailedResidentMap()TownyAPI.getOnlineResidents(ResidentList owner) Check whichResidents are online in aResidentListTownyUniverse.getResidentOpt(@NotNull String residentName) Get an optional instance of the resident matching the passed in name.TownyUniverse.getResidentOpt(@NotNull UUID residentUUID) Get an optional object that may contain the resident with the passed-in UUID.TownyAPI.getResidents()Gets a List of all of the Residents on the server.TownyAPI.getResidents(String[] names) Get a List of Resident from an array of names.TownyAPI.getResidents(UUID[] uuids) Get a List of Resident from an array of UUIDs.@Unmodifiable Collection<Resident> TownyUniverse.getResidents()TownyAPI.getResidentsWithoutTown()Gets a List of all the Residents which don't belong to a town.Methods in com.palmergames.bukkit.towny with parameters of type ResidentModifier and TypeMethodDescriptionvoidTownyAPI.abortTeleportRequest(Resident resident) voidTownyAPI.abortTeleportRequest(Resident resident, CancelledTownyTeleportEvent.CancelledTeleportReason reason) voidTowny.deleteCache(Resident resident) ChunkNotification.getAreaNotification(Resident resident) ChunkNotification.getAreaPvPNotification(Resident resident) static StringTownyFormatter.getFormattedResidentRegistration(Resident resident) static StringTownySettings.getKingPostfix(Resident resident) static StringTownySettings.getKingPrefix(Resident resident) static intTownySettings.getMaxResidentExtraPlots(Resident resident) static intTownySettings.getMaxResidentOutposts(Resident resident) static intTownySettings.getMaxResidentPlots(Resident resident) static StringTownySettings.getMayorPostfix(Resident resident) static StringTownySettings.getMayorPrefix(Resident resident) ChunkNotification.getNotificationContent(Resident resident) ChunkNotification.getNotificationString(Resident resident) ChunkNotification.getOwnerOrPlotNameNotification(Resident resident) org.bukkit.entity.PlayerFind the the matchingPlayerof the specifiedResident.@Nullable UUIDTownyAPI.getPlayerUUID(Resident resident) @Nullable NationTownyAPI.getResidentNationOrNull(Resident resident) Gets the resident's nation if they have one.@Nullable TownTownyAPI.getResidentTownOrNull(Resident resident) Gets the resident's town if they have one.static StatusScreenGets the status screen of a ResidentTownyFormatter.getTaxStatus(Resident resident, Translator translator) Returns the tax info this resident will have to pay at the next new day.ChunkNotification.getTownPVPNotification(Resident resident) voidTownyUniverse.registerResident(@NotNull Resident resident) Register a resident into the internal structures.voidTownyUniverse.registerResidentUUID(@NotNull Resident resident) static voidTownyMessaging.sendMsg(Resident resident, Translatable message) Send a translatable message to a resident if they are online, prefixed by the default_towny_prefix.static voidTownyMessaging.sendPlotList(org.bukkit.command.CommandSender sender, Resident resident, int page, int totalPages) static voidTownyMessaging.sendPrefixedTownMessage(Resident resident, Translatable message) Sends a message to all online residents of the specified resident's town, if they have one.static voidTownyMessaging.sendTitleMessageToResident(Resident resident, String title, String subtitle) Send a Title and Subtitle to a resident with default duration (70 ticks.)static voidTownyMessaging.sendTitleMessageToResident(Resident resident, String title, String subtitle, int duration) Send a Title and Subtitle to a resident for a specified number of ticks.voidTownyAPI.testPlotOwnerOrThrow(@NotNull Resident resident, @NotNull TownBlock townBlock) Test the townBlock to ensure it is owned by the given Resident, or the Resident is considered a Mayor or Town Assistant or a TownyAdmin.voidTownyUniverse.unregisterResident(@NotNull Resident resident) Unregister a resident from the internal structures. -
Uses of Resident in com.palmergames.bukkit.towny.command
Methods in com.palmergames.bukkit.towny.command that return ResidentModifier and TypeMethodDescriptionprotected static @NotNull ResidentBaseCommand.getResidentOrThrow(String residentName) protected static @NotNull ResidentBaseCommand.getResidentOrThrow(UUID playerUUID) protected static @NotNull ResidentBaseCommand.getResidentOrThrow(@Nullable org.bukkit.entity.Player player) Methods in com.palmergames.bukkit.towny.command with parameters of type ResidentModifier and TypeMethodDescriptionstatic voidBaseCommand.catchNPCResident(Resident resident) protected static @NotNull NationBaseCommand.getNationFromResidentOrThrow(Resident resident) protected static @NotNull TownBaseCommand.getTownFromResidentOrThrow(@NotNull Resident resident) static voidTownyAdminCommand.handleResidentMetaCommand(org.bukkit.command.CommandSender sender, Resident resident, String[] split) voidNationCommand.nationAddOrRemoveAlly(Resident resident, Nation nation, List<Nation> targetNations, boolean add) 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) static voidTownCommand.newTown(org.bukkit.entity.Player player, String name, Resident resident, boolean noCharge) Create a new town.static voidTownCommand.newTown(org.bukkit.entity.Player player, String name, Resident resident, boolean noCharge, boolean adminCreated) Create a new town.voidPlotCommand.parsePlotClaim(org.bukkit.entity.Player player, String[] args, Resident resident, TownBlock townBlock) voidPlotCommand.parsePlotClear(Resident resident, TownBlock townBlock) voidPlotCommand.parsePlotEvict(Resident resident, TownBlock townBlock, String[] split) voidPlotCommand.parsePlotForSale(org.bukkit.entity.Player player, String[] split, Resident resident, TownBlock townBlock) 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.parsePlotGroupPerm(String[] split, Resident resident, TownBlock townBlock, org.bukkit.entity.Player player) voidPlotCommand.parsePlotGroupSet(String[] split, Resident resident, TownBlock townBlock, org.bukkit.entity.Player player, Town town) voidPlotCommand.parsePlotGroupSetTownBlockType(String[] split, Resident resident, TownBlock townBlock, PlotGroup group, org.bukkit.entity.Player player, Town town) voidPlotCommand.parsePlotGroupToggle(String[] split, TownBlock townBlock, org.bukkit.entity.Player player, Resident resident) voidPlotCommand.parsePlotNotForSale(org.bukkit.entity.Player player, String[] args, Resident resident, TownBlock townBlock) voidPlotCommand.parsePlotSet(org.bukkit.entity.Player player, String[] split, Resident resident, TownBlock townBlock) voidPlotCommand.parsePlotSetOutpost(org.bukkit.entity.Player player, Resident resident, TownBlock townBlock, boolean spawn) voidPlotCommand.parsePlotUnclaim(org.bukkit.entity.Player player, String[] split, Resident resident) voidPlotCommand.plotGroupToggle(org.bukkit.entity.Player player, Resident resident, PlotGroup plotGroup, String[] split) Toggle the plot group flags for pvp/explosion/fire/mobs (if town/world permissions allow)voidPlotCommand.plotToggle(org.bukkit.entity.Player player, Resident resident, TownBlock townBlock, String[] split) Toggle the plots flags for pvp/explosion/fire/mobs (if town/world permissions allow)voidTownyAdminCommand.residentDelete(org.bukkit.command.CommandSender sender, Resident resident) Delete a resident and their data file afer a successful confirmation.static voidResidentCommand.residentFriend(org.bukkit.entity.Player player, String[] split, boolean admin, Resident resident) static voidResidentCommand.residentFriendAdd(org.bukkit.entity.Player player, Resident resident, List<Resident> friending) static voidResidentCommand.residentFriendRemove(org.bukkit.entity.Player player, Resident resident, List<Resident> unFriending) voidPlotCommand.setPlotForSale(Resident resident, WorldCoord worldCoord, double forSale) Set the plot for sale/not for sale if permittedstatic voidTownCommand.townAddResident(Town town, Resident resident) static voidTownCommand.townSetMayor(org.bukkit.command.CommandSender sender, String[] split, boolean admin, Town town, Resident resident) Method parameters in com.palmergames.bukkit.towny.command with type arguments of type ResidentModifier and TypeMethodDescriptionstatic voidResidentCommand.residentFriendAdd(org.bukkit.entity.Player player, Resident resident, List<Resident> friending) static voidResidentCommand.residentFriendRemove(org.bukkit.entity.Player player, Resident resident, List<Resident> unFriending) static voidTownCommand.townAddResidents(org.bukkit.command.CommandSender sender, Town town, List<Resident> invited) -
Uses of Resident in com.palmergames.bukkit.towny.db
Methods in com.palmergames.bukkit.towny.db that return ResidentModifier and TypeMethodDescription@NotNull ResidentTownyDatabaseHandler.newResident(String name) @NotNull ResidentTownyDatabaseHandler.newResident(String name, UUID uuid) abstract @NotNull ResidentTownyDataSource.newResident(String name) abstract @NotNull ResidentTownyDataSource.newResident(String name, UUID uuid) Methods in com.palmergames.bukkit.towny.db with parameters of type ResidentModifier and TypeMethodDescriptionabstract voidTownyDataSource.deleteResident(Resident resident) voidTownyFlatFileSource.deleteResident(Resident resident) voidTownySQLSource.deleteResident(Resident resident) TownyFlatFileSource.getResidentFilename(Resident resident) abstract booleanTownyDataSource.loadResident(Resident resident) booleanTownyFlatFileSource.loadResident(Resident resident) booleanTownySQLSource.loadResident(Resident resident) voidTownyDatabaseHandler.removeResident(Resident resident) abstract voidTownyDataSource.removeResident(Resident resident) voidTownyDatabaseHandler.renamePlayer(Resident resident, String newName) abstract voidTownyDataSource.renamePlayer(Resident resident, String newName) abstract booleanTownyDataSource.saveResident(Resident resident) booleanTownyFlatFileSource.saveResident(Resident resident) booleanTownySQLSource.saveResident(Resident resident) Method parameters in com.palmergames.bukkit.towny.db with type arguments of type ResidentModifier and TypeMethodDescriptionTownyDatabaseHandler.toUUIDList(Collection<Resident> residents) -
Uses of Resident in com.palmergames.bukkit.towny.event
Methods in com.palmergames.bukkit.towny.event that return ResidentModifier and TypeMethodDescription@Nullable ResidentDeleteNationEvent.getLeader()@Nullable ResidentDeleteTownEvent.getMayor()TownAddResidentEvent.getMayor()If this event has been thrown by a resident starting a new town, the town will not have set their mayor yet.PlotPreChangeTypeEvent.getResident()RenameResidentEvent.getResident()TownAddResidentEvent.getResident()TownAddResidentRankEvent.getResident()TownClaimEvent.getResident()Gets the resident claiming the townblock.TownPreAddResidentEvent.getResident()TownRemoveResidentEvent.getResident()TownRemoveResidentRankEvent.getResident()@Nullable ResidentDeleteNationEvent.getSenderResident()@Nullable ResidentDeleteTownEvent.getSenderResident()@Nullable ResidentPreDeleteNationEvent.getSenderResident()@Nullable ResidentPreDeleteTownEvent.getSenderResident()Constructors in com.palmergames.bukkit.towny.event with parameters of type ResidentModifierConstructorDescriptionDeleteNationEvent(Nation nation, Resident king, DeleteNationEvent.Cause cause, org.bukkit.command.CommandSender sender) DeletePlayerEvent(Resident resident) DeleteTownEvent(@NotNull Town town, @Nullable Resident mayor, @NotNull DeleteTownEvent.Cause cause, @Nullable org.bukkit.command.CommandSender sender) PlotPreChangeTypeEvent(TownBlockType newType, TownBlock townBlock, Resident resident) Changes a plot's TownBlockTypeRenameResidentEvent(String oldName, Resident resident) TownAddResidentEvent(Resident resident, Town town) TownAddResidentRankEvent(Resident resident, String rank, Town town) TownPreAddResidentEvent(Town town, Resident resident) TownRemoveResidentEvent(Resident resident, Town town) TownRemoveResidentRankEvent(Resident resident, String rank, Town town) -
Uses of Resident in com.palmergames.bukkit.towny.event.damage
Methods in com.palmergames.bukkit.towny.event.damage that return ResidentModifier and TypeMethodDescription@Nullable ResidentTownyPlayerDamagePlayerEvent.getAttackingResident()@Nullable ResidentTownyPlayerDamagePlayerEvent.getVictimResident() -
Uses of Resident in com.palmergames.bukkit.towny.event.deathprice
Fields in com.palmergames.bukkit.towny.event.deathprice declared as ResidentMethods in com.palmergames.bukkit.towny.event.deathprice that return ResidentConstructors in com.palmergames.bukkit.towny.event.deathprice with parameters of type ResidentModifierConstructorDescriptionDeathPriceEvent(Account payer, double amount, Resident deadResident, org.bukkit.entity.Player killer) NationPaysDeathPriceEvent(Account payer, double amount, Resident deadResident, org.bukkit.entity.Player killer, Nation nation) PlayerPaysDeathPriceEvent(Account payer, double amount, Resident deadResident, org.bukkit.entity.Player killer) TownPaysDeathPriceEvent(Account payer, double amount, Resident deadResident, org.bukkit.entity.Player killer, Town town) -
Uses of Resident in com.palmergames.bukkit.towny.event.nation
Methods in com.palmergames.bukkit.towny.event.nation that return ResidentModifier and TypeMethodDescriptionNationKingChangeEvent.getNewKing()NationKingChangeEvent.getOldKing()NationRankAddEvent.getResident()NationRankRemoveEvent.getResident()Constructors in com.palmergames.bukkit.towny.event.nation with parameters of type ResidentModifierConstructorDescriptionNationKingChangeEvent(Resident oldKing, Resident newKing) NationRankAddEvent(Nation nation, String rank, Resident res) NationRankRemoveEvent(Nation nation, String rank, Resident res) -
Uses of Resident in com.palmergames.bukkit.towny.event.nation.toggle
Methods in com.palmergames.bukkit.towny.event.nation.toggle that return Resident -
Uses of Resident in com.palmergames.bukkit.towny.event.player
Methods in com.palmergames.bukkit.towny.event.player that return ResidentModifier and TypeMethodDescription@Nullable ResidentPlayerKeepsExperienceEvent.getKiller()@Nullable ResidentPlayerKeepsInventoryEvent.getKiller()PlayerKilledPlayerEvent.getKillerRes()@Nullable ResidentPlayerEntersIntoDistrictEvent.getResident()@Nullable ResidentPlayerEntersIntoTownBorderEvent.getResident()@Nullable ResidentPlayerExitsFromDistrictEvent.getResident()@Nullable ResidentPlayerExitsFromTownBorderEvent.getResident()PlayerKeepsExperienceEvent.getResident()PlayerKeepsInventoryEvent.getResident()PlayerKilledPlayerEvent.getVictimRes()Constructors in com.palmergames.bukkit.towny.event.player with parameters of type ResidentModifierConstructorDescriptionPlayerKilledPlayerEvent(org.bukkit.entity.Player killer, org.bukkit.entity.Player victim, Resident killerRes, Resident victimRes, org.bukkit.Location location, org.bukkit.event.entity.PlayerDeathEvent event) An event fired from a EventPriority.MONITOR listener. -
Uses of Resident in com.palmergames.bukkit.towny.event.plot
Methods in com.palmergames.bukkit.towny.event.plot that return ResidentModifier and TypeMethodDescriptionPlayerChangePlotTypeEvent.getResident()@NotNull ResidentPlotNotForSaleEvent.getResident()@NotNull ResidentPlotSetForSaleEvent.getResident()PlotTrustAddEvent.getTrustedResident()PlotTrustRemoveEvent.getTrustedResident()Constructors in com.palmergames.bukkit.towny.event.plot with parameters of type ResidentModifierConstructorDescriptionPlotNotForSaleEvent(Resident resident, TownBlock townBlock) PlotSetForSaleEvent(Resident resident, double price, TownBlock townBlock) PlotTrustAddEvent(TownBlock townBlock, Resident trustedResident, org.bukkit.entity.Player player) PlotTrustAddEvent(List<TownBlock> townBlocks, Resident trustedResident, org.bukkit.entity.Player player) PlotTrustRemoveEvent(TownBlock townBlock, Resident trustedResident, org.bukkit.entity.Player player) PlotTrustRemoveEvent(List<TownBlock> townBlocks, Resident trustedResident, org.bukkit.entity.Player player) -
Uses of Resident in com.palmergames.bukkit.towny.event.plot.changeowner
Methods in com.palmergames.bukkit.towny.event.plot.changeowner that return ResidentModifier and TypeMethodDescription@Nullable ResidentPlotChangeOwnerEvent.getNewResident()@Nullable ResidentPlotChangeOwnerEvent.getOldResident()Constructors in com.palmergames.bukkit.towny.event.plot.changeowner with parameters of type ResidentModifierConstructorDescriptionPlotChangeOwnerEvent(@Nullable Resident oldResident, @Nullable Resident newResident, @NotNull TownBlock townBlock) PlotClaimEvent(Resident oldResident, Resident newResident, TownBlock townBlock) PlotPreClaimEvent(Resident oldResident, Resident newResident, TownBlock townBlock) PlotPreUnclaimEvent(Resident oldResident, Resident newResident, TownBlock townBlock) PlotUnclaimEvent(Resident oldResident, Resident newResident, TownBlock townBlock) -
Uses of Resident in com.palmergames.bukkit.towny.event.resident
Methods in com.palmergames.bukkit.towny.event.resident that return ResidentModifier and TypeMethodDescriptionNewResidentEvent.getResident()ResidentJailEvent.getResident()ResidentPreJailEvent.getResident()ResidentToggleModeEvent.getResident()ResidentUnjailEvent.getResident()Constructors in com.palmergames.bukkit.towny.event.resident with parameters of type ResidentModifierConstructorDescriptionNewResidentEvent(Resident resident) ResidentJailEvent(Resident resident, JailReason reason, org.bukkit.entity.Player sender) ResidentPreJailEvent(Resident resident, Jail jail, int cell, int hours, double bail, JailReason reason) ResidentToggleModeEvent(Resident resident, String mode) ResidentUnjailEvent(Resident resident, UnJailReason reason) -
Uses of Resident in com.palmergames.bukkit.towny.event.statusscreen
Methods in com.palmergames.bukkit.towny.event.statusscreen that return ResidentConstructors in com.palmergames.bukkit.towny.event.statusscreen with parameters of type Resident -
Uses of Resident in com.palmergames.bukkit.towny.event.teleport
Methods in com.palmergames.bukkit.towny.event.teleport that return ResidentModifier and TypeMethodDescriptionOutlawTeleportEvent.getOutlaw()CancelledTownyTeleportEvent.getResident()SuccessfulTownyTeleportEvent.getResident()UnjailedResidentTeleportEvent.getResident()Constructors in com.palmergames.bukkit.towny.event.teleport with parameters of type ResidentModifierConstructorDescriptionCancelledTownyTeleportEvent(Resident resident, org.bukkit.Location location, double teleportCost, CancelledTownyTeleportEvent.CancelledTeleportReason reason) OutlawTeleportEvent(Resident outlaw, Town town, org.bukkit.Location loc) SuccessfulTownyTeleportEvent(Resident resident, org.bukkit.Location loc, double cost) UnjailedResidentTeleportEvent(Resident resident, org.bukkit.Location location) -
Uses of Resident in com.palmergames.bukkit.towny.event.town
Methods in com.palmergames.bukkit.towny.event.town that return ResidentModifier and TypeMethodDescriptionTownPreInvitePlayerEvent.getInvitedResident()Convenience method for getting the resident that was invited.TownKickEvent.getKickedResident()TownMayorChangedEvent.getNewMayor()TownMayorChangeEvent.getNewMayor()TownMayorChosenBySuccessionEvent.getNewMayor()TownMayorChangedEvent.getOldMayor()TownMayorChangeEvent.getOldMayor()TownMayorChosenBySuccessionEvent.getOldMayor()TownOutlawAddEvent.getOutlawedResident()TownOutlawRemoveEvent.getOutlawedResident()TownLeaveEvent.getResident()TownPreReclaimEvent.getResident()TownPreRemoveResidentEvent.getResident()TownPreUnclaimCmdEvent.getResident()TownReclaimedEvent.getResident()The resident who is reclaiming the town, and will become the new mayor.TownTrustAddEvent.getTrustedResident()TownTrustRemoveEvent.getTrustedResident()Methods in com.palmergames.bukkit.towny.event.town that return types with arguments of type ResidentMethods in com.palmergames.bukkit.towny.event.town with parameters of type ResidentModifier and TypeMethodDescriptionvoidTownMayorChosenBySuccessionEvent.setNewMayor(Resident replacementMayor) Constructors in com.palmergames.bukkit.towny.event.town with parameters of type ResidentModifierConstructorDescriptionTownKickEvent(Resident kickedResident, Object kicker) TownLeaveEvent(Resident resident, Town town) TownMayorChangedEvent(Resident oldMayor, Resident newMayor) TownMayorChangeEvent(org.bukkit.command.CommandSender sender, Resident oldMayor, Resident newMayor) TownMayorChosenBySuccessionEvent(Resident oldMayor, Resident newMayor, List<Resident> potentialResidents) TownOutlawAddEvent(org.bukkit.command.CommandSender sender, Resident outlawedResident, Town town) TownOutlawRemoveEvent(org.bukkit.command.CommandSender sender, Resident outlawedResident, Town town) TownPreReclaimEvent(Town town, Resident resident, org.bukkit.entity.Player player) TownPreRemoveResidentEvent(Resident resident, Town town) TownPreUnclaimCmdEvent(Town town, Resident resident, TownyWorld world, List<WorldCoord> selection) Constructs the TownPreUnclaimCmdEvent and stores data an external war plugin may use.TownReclaimedEvent(Town town, Resident resident) TownTrustAddEvent(org.bukkit.command.CommandSender sender, Resident trustedResident, Town town) TownTrustRemoveEvent(org.bukkit.command.CommandSender sender, Resident trustedResident, Town town) Constructor parameters in com.palmergames.bukkit.towny.event.town with type arguments of type ResidentModifierConstructorDescriptionTownMayorChosenBySuccessionEvent(Resident oldMayor, Resident newMayor, List<Resident> potentialResidents) -
Uses of Resident in com.palmergames.bukkit.towny.event.town.toggle
Methods in com.palmergames.bukkit.towny.event.town.toggle that return Resident -
Uses of Resident in com.palmergames.bukkit.towny.listeners
Methods in com.palmergames.bukkit.towny.listeners with parameters of type ResidentModifier and TypeMethodDescriptionbooleanTownyPlayerListener.blockCommandInsideTown(org.bukkit.entity.Player player, Resident resident, TownBlock townBlock, String command) Allows restricting commands while being in a town.booleanTownyPlayerListener.blockJailedPlayerCommand(org.bukkit.entity.Player player, Resident resident, String command) booleanTownyPlayerListener.blockOutlawedPlayerCommand(org.bukkit.entity.Player player, Resident resident, TownBlock townBlock, String command) Blocks outlawed players using blacklisted commands.booleanTownyPlayerListener.blockWarPlayerCommand(org.bukkit.entity.Player player, Resident resident, String command) -
Uses of Resident in com.palmergames.bukkit.towny.object
Methods in com.palmergames.bukkit.towny.object that return ResidentModifier and TypeMethodDescriptionNation.getKing()Town.getMayor()@Nullable ResidentPlotGroup.getResident()TownBlock.getResident()@Nullable ResidentTownBlock.getResidentOrNull()Relatively safe to use after testingTownBlock.hasResident().Methods in com.palmergames.bukkit.towny.object that return types with arguments of type ResidentModifier and TypeMethodDescriptionNation.getAssistants()Resident.getFriends()Town.getJailedResidents()Nation.getOutlaws()ResidentList.getOutlaws()Gets the unmodifiable list of outlaws.Town.getOutlaws()PlotGroup.getPermissionOverrides()TownBlock.getPermissionOverrides()Nation.getResidents()ResidentList.getResidents()Returns an unmodifiable list of residents.Town.getResidents()PlotGroup.getTrustedResidents()Town.getTrustedResidents()TownBlock.getTrustedResidents()Methods in com.palmergames.bukkit.towny.object with parameters of type ResidentModifier and TypeMethodDescriptionvoidvoidvoidTown.addOutlawCheck(Resident resident) voidTown.addResidentCheck(Resident resident) voidPlotGroup.addTrustedResident(Resident resident) voidTown.addTrustedResident(Resident resident) voidTownBlock.addTrustedResident(Resident resident) final voidGovernment.depositToBank(Resident resident, int amount) Puts money into the bank.voidTown.forceSetMayor(Resident mayor) Sets a resident to become mayor.static LocalebooleanNation.hasAssistant(Resident resident) booleanbooleanbooleanNation.hasResident(Resident resident) booleanTown.hasResident(Resident resident) booleanTownBlock.hasResident(Resident resident) booleanTown.hasResidentWithRank(Resident resident, String rank) booleanPlotGroup.hasTrustedResident(Resident resident) booleanTown.hasTrustedResident(Resident resident) booleanTownBlock.hasTrustedResident(Resident resident) booleanResident.isAlliedWith(Resident otherresident) booleanbooleanstatic Stringstatic StringvoidPlotGroup.putPermissionOverride(Resident resident, PermissionData permissionData) voidResident.removeFriend(Resident resident) voidTown.removeOutlaw(Resident resident) voidPlotGroup.removePermissionOverride(Resident resident) voidTown.removeResident(Resident resident) voidPlotGroup.removeTrustedResident(Resident resident) voidTown.removeTrustedResident(Resident resident) voidTownBlock.removeTrustedResident(Resident resident) voidvoidSets a town resident to become mayor.voidvoidPlotGroup.setResident(Resident resident) booleanTownBlock.setResident(@Nullable Resident resident) Changes the owner of the plot to the given resident.booleanTownBlock.setResident(@Nullable Resident resident, boolean callEvent) Changes the owner of the plot to the given resident.voidTownBlock.setType(TownBlockType type, Resident resident) voidTownBlock.testTownMembershipAgePreventsThisClaimOrThrow(Resident resident) Tests whether a Resident's Town membership age (join date) is too high or low, preventing them from claiming this TownBlock personally with /plot claim.voidTownyInventory.tryPaginate(org.bukkit.inventory.ItemStack clickedItem, org.bukkit.entity.Player player, Resident resident, org.bukkit.inventory.InventoryView inventoryView) final voidGovernment.withdrawFromBank(Resident resident, int amount) Takes money from the bank.Method parameters in com.palmergames.bukkit.towny.object with type arguments of type ResidentModifier and TypeMethodDescriptionvoidTownBlock.addTrustedResidents(List<Resident> residents) voidTown.loadOutlaws(List<Resident> outlaws) voidResident.setFriends(List<Resident> newFriends) voidPlotGroup.setPermissionOverrides(Map<Resident, PermissionData> permissionOverrides) voidTownBlock.setPermissionOverrides(Map<Resident, PermissionData> permissionOverrides) voidPlotGroup.setTrustedResidents(Set<Resident> trustedResidents) voidTownBlock.setTrustedResidents(Set<Resident> trustedResidents) Constructors in com.palmergames.bukkit.towny.object with parameters of type ResidentModifierConstructorDescriptionprotectedEconomyAccount(Resident resident, String name, UUID uuid, Supplier<TownyWorld> worldSupplier) TownyInventory(Resident res, org.bukkit.inventory.Inventory inv, String name) -
Uses of Resident in com.palmergames.bukkit.towny.object.gui
Methods in com.palmergames.bukkit.towny.object.gui with parameters of type ResidentModifier and TypeMethodDescriptionvoidPermissionGUI.tryPaginate(org.bukkit.inventory.ItemStack clickedItem, org.bukkit.entity.Player player, Resident resident, org.bukkit.inventory.InventoryView inventoryView) Constructors in com.palmergames.bukkit.towny.object.gui with parameters of type ResidentModifierConstructorDescriptionEditGUI(Resident res, org.bukkit.inventory.Inventory inv, String name, TownBlock townBlock, Resident selectedResident) PermissionGUI(Resident res, org.bukkit.inventory.Inventory inv, String name, TownBlock townBlock, boolean canEdit) SelectionGUI(Resident res, org.bukkit.inventory.Inventory inv, String name, SelectionGUI.SelectionType type) -
Uses of Resident in com.palmergames.bukkit.towny.object.inviteobjects
Constructors in com.palmergames.bukkit.towny.object.inviteobjects with parameters of type ResidentModifierConstructorDescriptionPlayerJoinTownInvite(org.bukkit.command.CommandSender directSender, Resident receiver, Town sender) -
Uses of Resident in com.palmergames.bukkit.towny.object.resident.mode
Methods in com.palmergames.bukkit.towny.object.resident.mode with parameters of type ResidentModifier and TypeMethodDescriptionprotected static voidResidentModeHandler.addMode(Resident resident, AbstractResidentMode mode) static voidResidentModeHandler.applyDefaultModes(Resident resident, boolean notify) static voidResidentModeHandler.clearModes(Resident resident, boolean notify) Removes all modes from a Resident.static Set<AbstractResidentMode> protected static Set<AbstractResidentMode> ResidentModeHandler.getResidentModes(Resident resident) ResidentModeHandler.getResidentModesNames(Resident resident) static booleanResidentModeHandler.hasMode(Resident resident, AbstractResidentMode mode) static booleanprotected static voidResidentModeHandler.removeMode(Resident resident, AbstractResidentMode mode) static voidResidentModeHandler.resetModes(Resident resident, boolean notify) Removes all modes from a Resident and then resets their modes to the Default Modes according to their permissions.protected abstract voidprotected voidprotected voidprotected voidstatic voidResidentModeHandler.toggleMode(Resident resident, AbstractResidentMode mode, boolean notify) Will attempt to toggle on or off, a AbstractResidentMode on a Resident.static voidResidentModeHandler.toggleMode(Resident resident, String name, boolean notify) Will attempt to toggle on or off, a named mode on a Resident.static voidResidentModeHandler.toggleModes(Resident resident, String[] names, boolean notify, boolean clearModes) Will clear a Resident's modes and then apply all of the given named Modes. -
Uses of Resident in com.palmergames.bukkit.towny.permissions
Methods in com.palmergames.bukkit.towny.permissions with parameters of type ResidentModifier and TypeMethodDescriptionstatic voidTownyPerms.assignPermissions(Resident resident, org.bukkit.entity.Player player) Register a specific residents permissions with Bukkit.static StringTownyPerms.getHighestPriorityRank(Resident resident, List<String> ranks, Function<String, List<String>> rankFunction) BukkitPermSource.getPrefixSuffix(Resident resident, String node) GroupManagerSource.getPrefixSuffix(Resident resident, String node) getPermissionNode returns the specified prefix/suffix nodes from GroupManagerNullPermSource.getPrefixSuffix(Resident resident, String node) abstract StringTownyPermissionSource.getPrefixSuffix(Resident resident, String node) VaultPermSource.getPrefixSuffix(Resident resident, String node) static LinkedHashMap<String, Boolean> TownyPerms.getResidentPerms(Resident resident) Returns a sorted map of this residents current permissions.static StringTownyPerms.getResidentPrimaryRankPrefix(Resident resident) -
Uses of Resident in com.palmergames.bukkit.towny.tasks
Methods in com.palmergames.bukkit.towny.tasks with parameters of type ResidentModifier and TypeMethodDescriptionstatic booleanTeleportWarmupTimerTask.abortTeleportRequest(@Nullable Resident resident) Aborts the current active teleport request for the given resident.static booleanTeleportWarmupTimerTask.abortTeleportRequest(@Nullable Resident resident, CancelledTownyTeleportEvent.CancelledTeleportReason reason) Aborts the current active teleport request for the given resident.static TeleportRequestTeleportWarmupTimerTask.getTeleportRequest(@NotNull Resident resident) static booleanTeleportWarmupTimerTask.hasTeleportRequest(@NotNull Resident resident) static voidTeleportWarmupTimerTask.requestTeleport(@NotNull Resident resident, @NotNull org.bukkit.Location destination, int cooldown, @Nullable Account teleportAccount, double teleportCost) This does not refund any other teleport requests that might be active for the resident, useTeleportWarmupTimerTask.abortTeleportRequest(Resident)first if you want them to be refunded.static voidTeleportWarmupTimerTask.requestTeleport(Resident resident, org.bukkit.Location spawnLoc) static voidTeleportWarmupTimerTask.requestTeleport(Resident resident, org.bukkit.Location spawnLoc, int cooldown) Constructors in com.palmergames.bukkit.towny.tasks with parameters of type ResidentModifierConstructorDescriptionPlotClaim(Towny plugin, org.bukkit.entity.Player player, Resident resident, List<WorldCoord> selection, boolean claim, boolean admin, boolean groupClaim) -
Uses of Resident in com.palmergames.bukkit.towny.utils
Methods in com.palmergames.bukkit.towny.utils that return ResidentMethods in com.palmergames.bukkit.towny.utils that return types with arguments of type ResidentModifier and TypeMethodDescriptionTownUtil.gatherInactiveResidents(List<Resident> resList, int days) Makes a list of Residents who haven't logged in in the given days.ResidentUtil.getOnlineResidentsViewable(org.bukkit.entity.Player viewer, ResidentList residentList) Return a list of Residents that can be seen (not vanished) by the viewer.ResidentUtil.getValidatedResidents(org.bukkit.command.CommandSender sender, List<String> names) Transforms a String[] of names to a list of Residents.ResidentUtil.getValidatedResidentsOfTown(org.bukkit.command.CommandSender sender, Town town, String[] names) Transforms a String[] of names to a list of Residents.Methods in com.palmergames.bukkit.towny.utils with parameters of type ResidentModifier and TypeMethodDescriptionstatic List<WorldCoord> AreaSelectionUtil.filterOutResidentBlocks(Resident resident, List<WorldCoord> selection) Returns a List containing only claimed townblocks, which are: - not personally owned by a resident who isn't the given residentstatic List<WorldCoord> AreaSelectionUtil.filterPlotsForSale(Resident resident, List<WorldCoord> selection) Gather plots that are for sale only, using a resident to determine whether they can be bought.static booleanIs the resident B an ally of resident A?static booleanIs the resident B an enemy of resident A?static booleanJailUtil.isQueuedToBeJailed(Resident resident) static booleanCombatUtil.isSameNation(Resident a, Resident b) Is resident a in a nation with resident b?static booleanCombatUtil.isSameTown(Resident a, Resident b) Is resident a in a town with resident b?static voidSpawnUtil.jailAwayTeleport(Resident jailed) Used to teleport a jailed resident away from jail, upon gaining freedom.static voidJailUtil.jailResident(Resident resident, Jail jail, int cell, int hours, JailReason reason, org.bukkit.command.CommandSender jailer) Jails a resident.static voidJailUtil.jailResidentWithBail(Resident resident, Jail jail, int cell, int hours, double bail, JailReason reason, org.bukkit.command.CommandSender jailer) Jails a resident.static voidSpawnUtil.jailTeleport(Resident jailed) Used to teleport a newly jailed resident to jail.static voidMoneyUtil.nationDeposit(org.bukkit.entity.Player player, Resident resident, Nation nation, int amount) static voidMoneyUtil.nationWithdraw(org.bukkit.entity.Player player, Resident resident, Nation nation, int amount) static voidResidentUtil.openGUIInventory(Resident resident, Collection<org.bukkit.Material> set, String name) static voidResidentUtil.openGUIInventory(Resident resident, List<String> list, String name) Opens a basic inventory GUI with pagination.static voidPermissionGUIUtil.openPermissionEditorGUI(@NotNull Resident resident, @NotNull TownBlock townBlock, @NotNull org.bukkit.inventory.ItemStack clickedItem) static voidPermissionGUIUtil.openPermissionGUI(@NotNull Resident resident, @NotNull TownBlock townBlock) static voidResidentUtil.openSelectionGUI(Resident resident, SelectionGUI.SelectionType selectionType) 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.reclaimTown(@NotNull Resident resident, @NotNull Town town) static voidJailUtil.showBailTitleMessage(Resident resident, Translator translator) static voidChunkNotificationUtil.showChunkNotification(org.bukkit.entity.Player player, Resident resident, WorldCoord to, WorldCoord from) static voidResidentUtil.toggleResidentBorderTitles(Resident resident, Optional<Boolean> choice) static voidMoneyUtil.townDeposit(org.bukkit.entity.Player player, Resident resident, Town town, Nation nation, int amount) static voidMoneyUtil.townWithdraw(org.bukkit.entity.Player player, Resident resident, Town town, int amount) static voidJailUtil.unJailResident(Resident resident) static voidJailUtil.unJailResident(Resident resident, UnJailReason reason) Unjails a resident.Method parameters in com.palmergames.bukkit.towny.utils with type arguments of type ResidentModifier and TypeMethodDescriptionstatic booleanCombatUtil.areAllFriends(List<Resident> possibleFriends) Test if all the listed residents are friendsTownUtil.gatherInactiveResidents(List<Resident> resList, int days) Makes a list of Residents who haven't logged in in the given days. -
Uses of Resident in com.palmergames.bukkit.util
Methods in com.palmergames.bukkit.util with parameters of type ResidentModifier and TypeMethodDescriptionstatic org.bukkit.ColorDrawSmokeTaskFactory.getAffiliationColor(Resident resident, WorldCoord coord)