Uses of Class
com.palmergames.bukkit.towny.object.Nation
Packages that use Nation
Package
Description
-
Uses of Nation in com.palmergames.bukkit.towny
Methods in com.palmergames.bukkit.towny that return NationModifier and TypeMethodDescription@Nullable NationGets the nation from the given name.@Nullable NationGets the nation from the given UUID.@Nullable NationTownyAPI.getNation(@NotNull org.bukkit.entity.Player player) @Nullable NationGet the nation with the passed-in nation name if it exists.@Nullable NationGet the nation with the given UUID if it exists.@Nullable NationTownyAPI.getResidentNationOrNull(Resident resident) Gets the resident's nation if they have one.@Nullable NationTownyAPI.getTownNationOrNull(Town town) Gets the town's nation if they have one.Methods in com.palmergames.bukkit.towny that return types with arguments of type NationModifier and TypeMethodDescriptionTownyAPI.getNations()Get a List of all the Nations.TownyAPI.getNations(String[] names) Gets a List of Nations using an array of names.TownyAPI.getNations(List<UUID> uuids) Gets a List of Nations using a List of UUIDsTownyAPI.getNations(UUID[] uuids) @Unmodifiable Collection<Nation> TownyUniverse.getNations()Methods in com.palmergames.bukkit.towny with parameters of type NationModifier and TypeMethodDescriptionstatic StringTownySettings.getCapitalPostfix(Nation nation) static StringTownySettings.getCapitalPrefix(Nation nation) static doubleTownySettings.getNationBankCap(Nation nation) static intTownySettings.getNationBonusBlocks(Nation nation) static TownySettings.NationLevelTownySettings.getNationLevel(Nation nation) static doubleTownySettings.getNationNeutralityCost(Nation nation) static StringTownySettings.getNationPostfix(Nation nation) static StringTownySettings.getNationPrefix(Nation nation) TownyFormatter.getNationSubtitle(Nation nation, Translator translator) Returns the 2nd line of the Nation StatusScreen.static doubleTownySettings.getNationUpkeepCost(Nation nation) List<org.bukkit.entity.Player> TownyAPI.getOnlinePlayersAlliance(Nation nation) Gets all onlinePlayers for a specificNations alliance.List<org.bukkit.entity.Player> TownyAPI.getOnlinePlayersInNation(Nation nation) Gets all onlinePlayers for a specificNation.TownyFormatter.getRanksForNation(Nation nation, Translator translator) Returns a Chat Formatted List of all nation residents who hold a rank.static StatusScreenGets the status screen of a Nation.voidTownyUniverse.registerNation(@NotNull Nation nation) Used to register a nation into the TownyUniverse internal maps.voidTownyUniverse.registerNationUUID(@NotNull Nation nation) static voidTownyMessaging.sendNationBoard(org.bukkit.command.CommandSender sender, Nation nation) Send the nation board to a player (in yellow)static voidTownyMessaging.sendNationMessagePrefixed(Nation nation, Translatable message) Send a message to All online residents of a nation and log, preceded by the default_towny_prefixstatic voidTownyMessaging.sendPrefixedNationMessage(Nation nation, Translatable message) Send a message to All online residents of a nation and log preceded by the [NationName], translated for the end-user.static voidTownyMessaging.sendPrefixedNationMessage(Nation nation, String line) Send a message to All online residents of a nation and log with the [nationname] prefixed to the beginningstatic voidTownyMessaging.sendTitleMessageToNation(Nation nation, String title, String subtitle) Send a Title and Subtitle to a nation with default duration (70 ticks.)static voidTownyMessaging.sendTitleMessageToNation(Nation nation, String title, String subtitle, int duration) Send a Title and Subtitle to a nation for a specified number of ticks.voidTownyUniverse.unregisterNation(@NotNull Nation nation) Used to unregister a nation from the TownyUniverse internal maps. -
Uses of Nation in com.palmergames.bukkit.towny.command
Methods in com.palmergames.bukkit.towny.command that return NationModifier and TypeMethodDescriptionprotected static @NotNull NationBaseCommand.getNationFromPlayerOrThrow(org.bukkit.entity.Player player) protected static @NotNull NationBaseCommand.getNationFromResidentOrThrow(Resident resident) protected static @NotNull NationBaseCommand.getNationFromTownOrThrow(Town town) protected static @NotNull NationBaseCommand.getNationOrThrow(String nationName) static NationMethods in com.palmergames.bukkit.towny.command with parameters of type NationModifier and TypeMethodDescriptionstatic voidTownyAdminCommand.handleNationMetaCommand(org.bukkit.command.CommandSender sender, Nation nation, String[] split) static voidNationCommand.mergeNation(org.bukkit.command.CommandSender sender, String[] split, @NotNull Nation remainingNation, boolean admin) static voidFinal stage of adding a town to a nation, via joining or via accepting an invite.static voidDeprecated.voidNationCommand.nationAddOrRemoveAlly(Resident resident, Nation nation, List<Nation> targetNations, boolean add) voidNationCommand.nationEnemy(org.bukkit.entity.Player player, Nation nation, List<Nation> enemies, boolean add) static voidNationCommand.nationKick(org.bukkit.command.CommandSender sender, Nation nation, List<Town> kicking) static voidNationCommand.nationRename(org.bukkit.entity.Player player, Nation nation, String newName) static voidNationCommand.nationSanctionTown(org.bukkit.command.CommandSender sender, Nation nation, String[] args) static voidNationCommand.nationSet(org.bukkit.command.CommandSender sender, String[] split, boolean admin, Nation nation) static voidNationCommand.nationSetConqueredTax(org.bukkit.command.CommandSender sender, String[] split, Nation nation) static voidNationCommand.nationSetTaxPercentCap(org.bukkit.command.CommandSender sender, String[] split, Nation nation) static voidNationCommand.nationToggle(org.bukkit.command.CommandSender sender, String[] split, boolean admin, Nation nation) Method parameters in com.palmergames.bukkit.towny.command with type arguments of type NationModifier and TypeMethodDescriptionvoidNationCommand.nationAddOrRemoveAlly(Resident resident, Nation nation, List<Nation> targetNations, boolean add) voidNationCommand.nationEnemy(org.bukkit.entity.Player player, Nation nation, List<Nation> enemies, boolean add) -
Uses of Nation in com.palmergames.bukkit.towny.db
Methods in com.palmergames.bukkit.towny.db with parameters of type NationModifier and TypeMethodDescriptionabstract voidTownyDataSource.deleteNation(Nation nation) voidTownyFlatFileSource.deleteNation(Nation nation) voidTownySQLSource.deleteNation(Nation nation) TownyFlatFileSource.getNationFilename(Nation nation) abstract booleanTownyDataSource.loadNation(Nation nation) booleanTownyFlatFileSource.loadNation(Nation nation) booleanTownySQLSource.loadNation(Nation nation) voidTownyDatabaseHandler.mergeNation(Nation succumbingNation, Nation prevailingNation) Merges the succumbingNation into the prevailingNation.abstract voidTownyDataSource.mergeNation(Nation succumbingNation, Nation prevailingNation) booleanTownyDatabaseHandler.removeNation(@NotNull Nation nation, DeleteNationEvent.Cause cause, @Nullable org.bukkit.command.CommandSender sender) booleanTownyDataSource.removeNation(@NotNull Nation nation, DeleteNationEvent.Cause cause) abstract booleanTownyDataSource.removeNation(@NotNull Nation nation, DeleteNationEvent.Cause cause, @Nullable org.bukkit.command.CommandSender sender) voidTownyDataSource.removeNation(Nation nation) Deprecated.since 0.100.2.96 useTownyDataSource.removeNation(Nation, com.palmergames.bukkit.towny.event.DeleteNationEvent.Cause)instead.voidTownyDatabaseHandler.renameNation(Nation nation, String newName) abstract voidTownyDataSource.renameNation(Nation nation, String newName) abstract booleanTownyDataSource.saveNation(Nation nation) booleanTownyFlatFileSource.saveNation(Nation nation) booleanTownySQLSource.saveNation(Nation nation) -
Uses of Nation in com.palmergames.bukkit.towny.event
Methods in com.palmergames.bukkit.towny.event that return NationModifier and TypeMethodDescriptionNationAddEnemyEvent.getEnemy()NationPreAddEnemyEvent.getEnemy()NationPreRemoveEnemyEvent.getEnemy()NationRemoveEnemyEvent.getEnemy()@Nullable NationNationSpawnEvent.getFromNation()Gets the nation the player is spawning from.NationAcceptAllyRequestEvent.getInvitedNation()NationAddEnemyEvent.getNation()NationAddTownEvent.getNation()NationBonusCalculationEvent.getNation()NationPreAddEnemyEvent.getNation()NationPreAddTownEvent.getNation()NationPreRemoveEnemyEvent.getNation()NationPreRenameEvent.getNation()NationRemoveAllyEvent.getNation()NationRemoveEnemyEvent.getNation()NationRemoveTownEvent.getNation()NationUpkeepCalculationEvent.getNation()NewNationEvent.getNation()PreDeleteNationEvent.getNation()RenameNationEvent.getNation()NationDenyAllyRequestEvent.getReceiverNation()NationRemoveAllyEvent.getRemovedNation()NationAcceptAllyRequestEvent.getSenderNation()NationDenyAllyRequestEvent.getSenderNation()NationSpawnEvent.getToNation()Gets the nation that the player to spawning to.Constructors in com.palmergames.bukkit.towny.event with parameters of type NationModifierConstructorDescriptionDeleteNationEvent(Nation nation, Resident king, DeleteNationEvent.Cause cause, org.bukkit.command.CommandSender sender) NationAcceptAllyRequestEvent(Nation senderNation, Nation receiverNation) NationAddEnemyEvent(Nation nation, Nation enemy) NationAddTownEvent(Town town, Nation nation) NationBonusCalculationEvent(Nation nation, int bonusBlocks) NationDenyAllyRequestEvent(Nation receiverNation, Nation senderNation) NationPreAddEnemyEvent(Nation nation, Nation enemy) NationPreAddTownEvent(Nation nation, Town town) NationPreRemoveEnemyEvent(Nation nation, Nation enemy) NationPreRenameEvent(Nation nation, String newName) NationRemoveAllyEvent(Nation nation, Nation removedNation) NationRemoveEnemyEvent(Nation nation, Nation enemy) NationRemoveTownEvent(Town town, Nation nation) NationUpkeepCalculationEvent(Nation nation, double upkeep) NewNationEvent(Nation nation) PreDeleteNationEvent(@NotNull Nation nation, DeleteNationEvent.Cause cause, @Nullable org.bukkit.command.CommandSender sender) RenameNationEvent(String oldName, Nation nation) -
Uses of Nation in com.palmergames.bukkit.towny.event.deathprice
Fields in com.palmergames.bukkit.towny.event.deathprice declared as NationMethods in com.palmergames.bukkit.towny.event.deathprice that return NationConstructors in com.palmergames.bukkit.towny.event.deathprice with parameters of type NationModifierConstructorDescriptionNationPaysDeathPriceEvent(Account payer, double amount, Resident deadResident, org.bukkit.entity.Player killer, Nation nation) -
Uses of Nation in com.palmergames.bukkit.towny.event.economy
Methods in com.palmergames.bukkit.towny.event.economy that return NationModifier and TypeMethodDescriptionNationPreTransactionEvent.getNation()NationTransactionEvent.getNation()Constructors in com.palmergames.bukkit.towny.event.economy with parameters of type NationModifierConstructorDescriptionNationPreTransactionEvent(Nation nation, Transaction transaction) An Cancellable event thrown when aNationBankAccountis about to either receive or pay money.NationTransactionEvent(Nation nation, Transaction transaction) An event thrown when aNationBankAccounteither receives or pays money. -
Uses of Nation in com.palmergames.bukkit.towny.event.nation
Methods in com.palmergames.bukkit.towny.event.nation that return NationModifier and TypeMethodDescriptionNationPreAddAllyEvent.getAlly()NationCalculateNationLevelNumberEvent.getNation()NationKingChangeEvent.getNation()NationLevelDecreaseEvent.getNation()The nation which has had its Nation_Level decrease.NationLevelIncreaseEvent.getNation()The nation which has had its Nation_Level increase.NationListDisplayedValueCalculationEvent.getNation()NationMergeEvent.getNation()@NotNull NationNationNeutralityCostCalculationEvent.getNation()Gets the nation paying the neutrality cost.NationPreAddAllyEvent.getNation()NationPreInviteTownEvent.getNation()Convenience method for getting the town that sent the invite.NationPreMergeEvent.getNation()NationPreTownKickEvent.getNation()NationPreTownLeaveEvent.getNation()NationRankAddEvent.getNation()NationRankRemoveEvent.getNation()NationSanctionTownAddEvent.getNation()NationSanctionTownRemoveEvent.getNation()@NotNull NationNationSetSpawnEvent.getNation()NationTownLeaveEvent.getNation()NationMergeEvent.getRemainingnation()NationPreMergeEvent.getRemainingNation()Methods in com.palmergames.bukkit.towny.event.nation that return types with arguments of type NationMethod parameters in com.palmergames.bukkit.towny.event.nation with type arguments of type NationModifier and TypeMethodDescriptionvoidDisplayedNationsListSortEvent.setNations(List<Nation> nations) Constructors in com.palmergames.bukkit.towny.event.nation with parameters of type NationModifierConstructorDescriptionNationCalculateNationLevelNumberEvent(Nation nation, int predeterminedLevelNumber) An event that is thrown which allows other plugins to alter a Nation's NationLevel Number. ie: 1 toTownySettings.getNationLevelMax().NationLevelDecreaseEvent(Nation nation) NationLevelIncreaseEvent(Nation nation) NationListDisplayedNumOnlinePlayersCalculationEvent(Nation nation, int displayedNumOnlinePlayers) NationListDisplayedNumResidentsCalculationEvent(Nation nation, int displayedNumResidents) NationListDisplayedNumTownBlocksCalculationEvent(Nation nation, int displayedNumTowns) NationListDisplayedNumTownsCalculationEvent(Nation nation, int displayedNumTowns) NationListDisplayedValueCalculationEvent(Nation nation, int displayedValue) NationMergeEvent(Nation nation, Nation remainingnation) NationNeutralityCostCalculationEvent(Nation nation, double neutralityCost) NationPreAddAllyEvent(Nation nation, Nation ally) NationPreMergeEvent(Nation nation, Nation remainingNation) NationPreTownKickEvent(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.NationRankAddEvent(Nation nation, String rank, Resident res) NationRankRemoveEvent(Nation nation, String rank, Resident res) NationSanctionTownAddEvent(Nation nation, Town town) NationSanctionTownRemoveEvent(Nation nation, Town town) NationSetSpawnEvent(Nation nation, org.bukkit.entity.Player player, org.bukkit.Location newSpawn) 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.Constructor parameters in com.palmergames.bukkit.towny.event.nation with type arguments of type NationModifierConstructorDescriptionDisplayedNationsListSortEvent(List<Nation> nations, ComparatorType comparatorType) -
Uses of Nation in com.palmergames.bukkit.towny.event.nation.toggle
Methods in com.palmergames.bukkit.towny.event.nation.toggle that return NationConstructors in com.palmergames.bukkit.towny.event.nation.toggle with parameters of type NationModifierConstructorDescriptionNationToggleEvent(org.bukkit.command.CommandSender sender, Nation nation, boolean admin) NationToggleNeutralEvent(org.bukkit.command.CommandSender sender, Nation nation, boolean admin, boolean newState) NationToggleOpenEvent(org.bukkit.command.CommandSender sender, Nation nation, boolean admin, boolean newState) NationTogglePublicEvent(org.bukkit.command.CommandSender sender, Nation nation, boolean admin, boolean newState) NationToggleTaxPercentEvent(org.bukkit.command.CommandSender sender, Nation nation, boolean admin, boolean newState) -
Uses of Nation in com.palmergames.bukkit.towny.event.statusscreen
Methods in com.palmergames.bukkit.towny.event.statusscreen that return NationConstructors in com.palmergames.bukkit.towny.event.statusscreen with parameters of type Nation -
Uses of Nation in com.palmergames.bukkit.towny.event.time.dailytaxes
Methods in com.palmergames.bukkit.towny.event.time.dailytaxes that return NationModifier and TypeMethodDescriptionPreTownPaysNationTaxEvent.getNation()TownPaysNationConqueredTaxEvent.getNation()Constructors in com.palmergames.bukkit.towny.event.time.dailytaxes with parameters of type NationModifierConstructorDescriptionPreTownPaysNationTaxEvent(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 Nation in com.palmergames.bukkit.towny.exceptions
Methods in com.palmergames.bukkit.towny.exceptions that return NationMethods in com.palmergames.bukkit.towny.exceptions with parameters of type NationConstructors in com.palmergames.bukkit.towny.exceptions with parameters of type Nation -
Uses of Nation in com.palmergames.bukkit.towny.invites
Methods in com.palmergames.bukkit.towny.invites with parameters of type NationModifier and TypeMethodDescriptionstatic intInviteHandler.getSentAllyRequestsMaxAmount(Nation sender) -
Uses of Nation in com.palmergames.bukkit.towny.object
Methods in com.palmergames.bukkit.towny.object that return NationModifier and TypeMethodDescriptionResident.getNation()Town.getNation()@Nullable NationResident.getNationOrNull()@Nullable NationTown.getNationOrNull()Safe to use as long asTown.hasNation()has returned true.Methods in com.palmergames.bukkit.towny.object that return types with arguments of type NationModifier and TypeMethodDescriptionNation.getAllies()Nation.getEnemies()Nation.getMutualAllies()Methods in com.palmergames.bukkit.towny.object with parameters of type NationModifier and TypeMethodDescriptionvoidvoidbooleanbooleanbooleanNation.hasMutualAlly(Nation nation) booleanNation.isAlliedWith(Nation nation) Shows if the nation is allied with the specified nation.booleanNation.removeAlly(Nation nation) booleanNation.removeEnemy(Nation nation) voidvoidMethod parameters in com.palmergames.bukkit.towny.object with type arguments of type Nation -
Uses of Nation in com.palmergames.bukkit.towny.object.comparators
Fields in com.palmergames.bukkit.towny.object.comparators with type parameters of type Nation -
Uses of Nation in com.palmergames.bukkit.towny.object.inviteobjects
Constructors in com.palmergames.bukkit.towny.object.inviteobjects with parameters of type NationModifierConstructorDescriptionNationAllyNationInvite(org.bukkit.command.CommandSender directSender, Nation receiver, Nation sender) TownJoinNationInvite(org.bukkit.command.CommandSender directSender, Town receiver, Nation sender) -
Uses of Nation in com.palmergames.bukkit.towny.object.spawnlevel
Methods in com.palmergames.bukkit.towny.object.spawnlevel with parameters of type NationModifier and TypeMethodDescriptionvoidNationSpawnLevel.checkIfAllowed(org.bukkit.entity.Player player, Nation nation) double -
Uses of Nation in com.palmergames.bukkit.towny.permissions
Methods in com.palmergames.bukkit.towny.permissions with parameters of type NationModifier and TypeMethodDescriptionTownyPerms.getNationRanks(Nation nation) static voidTownyPerms.updateNationPerms(Nation nation) Update the permissions for all residents of a nation (if online) -
Uses of Nation in com.palmergames.bukkit.towny.tasks
Methods in com.palmergames.bukkit.towny.tasks with parameters of type NationModifier and TypeMethodDescriptionprotected voidDailyTimerTask.collectNationTaxes(Nation nation) Collect taxes due to the nation from it's member towns. -
Uses of Nation in com.palmergames.bukkit.towny.utils
Methods in com.palmergames.bukkit.towny.utils with parameters of type NationModifier and TypeMethodDescriptionstatic voidMoneyUtil.addNationMoneyComponentsToScreen(Nation nation, Translator translator, StatusScreen screen) Populates the StatusScreen with the various bank and money components.static booleanNationUtil.canAddTownsResidentCount(Nation nation, int additionalResidents) ProximityUtil.gatherOutOfRangeTowns(Nation nation) ProximityUtil.gatherOutOfRangeTowns(Nation nation, Town capital) static booleanNationUtil.hasReachedMaximumAllies(Nation nation) static booleanNationUtil.hasReachedMaximumResidents(Nation nation) static booleanNationUtil.hasReachedMaximumTowns(Nation nation) 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 voidProximityUtil.removeOutOfRangeTowns(Nation nation) static voidProximityUtil.testTownProximityToNation(Town town, Nation nation) static voidMoneyUtil.townDeposit(org.bukkit.entity.Player player, Resident resident, Town town, Nation nation, int amount) Method parameters in com.palmergames.bukkit.towny.utils with type arguments of type NationModifier and TypeMethodDescriptionstatic booleanCombatUtil.areAllAllies(List<Nation> possibleAllies) Test if all the listed nations are allies -
Uses of Nation in com.palmergames.bukkit.util
Methods in com.palmergames.bukkit.util with parameters of type Nation
NationCommand.nationAdd(Nation, Town)instead.