Uses of Class
com.palmergames.bukkit.towny.object.Nation
Package
Description
-
Uses of Nation in com.palmergames.bukkit.towny
Modifier and TypeMethodDescription@Nullable Nation
Gets the nation from the given name.@Nullable Nation
Gets the nation from the given UUID.@Nullable Nation
TownyAPI.getNation
(@NotNull org.bukkit.entity.Player player) @Nullable Nation
Get the nation with the passed-in nation name if it exists.@Nullable Nation
Get the nation with the given UUID if it exists.@Nullable Nation
TownyAPI.getResidentNationOrNull
(Resident resident) Gets the resident's nation if they have one.@Nullable Nation
TownyAPI.getTownNationOrNull
(Town town) Gets the town's nation if they have one.Modifier 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()
Modifier and TypeMethodDescriptionstatic String
TownySettings.getCapitalPostfix
(Nation nation) static String
TownySettings.getCapitalPrefix
(Nation nation) static double
TownySettings.getNationBankCap
(Nation nation) static int
TownySettings.getNationBonusBlocks
(Nation nation) static TownySettings.NationLevel
TownySettings.getNationLevel
(Nation nation) static TownySettings.NationLevel
TownySettings.getNationLevel
(Nation nation, int residents) Deprecated.static double
TownySettings.getNationNeutralityCost
(Nation nation) static String
TownySettings.getNationPostfix
(Nation nation) static String
TownySettings.getNationPrefix
(Nation nation) TownyFormatter.getNationSubtitle
(Nation nation, Translator translator) Returns the 2nd line of the Nation StatusScreen.static double
TownySettings.getNationUpkeepCost
(Nation nation) List
<org.bukkit.entity.Player> TownyAPI.getOnlinePlayersAlliance
(Nation nation) Gets all onlinePlayer
s for a specificNation
s alliance.List
<org.bukkit.entity.Player> TownyAPI.getOnlinePlayersInNation
(Nation nation) Gets all onlinePlayer
s for a specificNation
.TownyFormatter.getRanksForNation
(Nation nation, Translator translator) Returns a Chat Formatted List of all nation residents who hold a rank.static StatusScreen
Gets the status screen of a Nation.void
TownyUniverse.registerNation
(@NotNull Nation nation) Used to register a nation into the TownyUniverse internal maps.void
TownyUniverse.registerNationUUID
(@NotNull Nation nation) static void
TownyMessaging.sendNationBoard
(org.bukkit.command.CommandSender sender, Nation nation) Send the nation board to a player (in yellow)static void
TownyMessaging.sendNationMessagePrefixed
(Nation nation, Translatable message) Send a message to All online residents of a nation and log, preceded by the default_towny_prefixstatic void
TownyMessaging.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 void
TownyMessaging.sendPrefixedNationMessage
(Nation nation, String line) Send a message to All online residents of a nation and log with the [nationname] prefixed to the beginningstatic void
TownyMessaging.sendTitleMessageToNation
(Nation nation, String title, String subtitle) Send a Title and Subtitle to a nation with default duration (70 ticks.)static void
TownyMessaging.sendTitleMessageToNation
(Nation nation, String title, String subtitle, int duration) Send a Title and Subtitle to a nation for a specified number of ticks.void
TownyUniverse.unregisterNation
(@NotNull Nation nation) Used to unregister a nation from the TownyUniverse internal maps. -
Uses of Nation in com.palmergames.bukkit.towny.command
Modifier and TypeMethodDescriptionprotected static @NotNull Nation
BaseCommand.getNationFromPlayerOrThrow
(org.bukkit.entity.Player player) protected static @NotNull Nation
BaseCommand.getNationFromResidentOrThrow
(Resident resident) protected static @NotNull Nation
BaseCommand.getNationFromTownOrThrow
(Town town) protected static @NotNull Nation
BaseCommand.getNationOrThrow
(String nationName) static Nation
Modifier and TypeMethodDescriptionstatic void
TownyAdminCommand.handleNationMetaCommand
(org.bukkit.command.CommandSender sender, Nation nation, String[] split) static void
NationCommand.mergeNation
(org.bukkit.command.CommandSender sender, String[] split, @NotNull Nation remainingNation, boolean admin) static void
Final stage of adding a town to a nation, via joining or via accepting an invite.static void
Deprecated.since 0.100.1.2 useNationCommand.nationAdd(Nation, Town)
instead.void
NationCommand.nationAddOrRemoveAlly
(Resident resident, Nation nation, List<Nation> targetNations, boolean add) void
NationCommand.nationEnemy
(org.bukkit.entity.Player player, Nation nation, List<Nation> enemies, boolean add) static void
NationCommand.nationKick
(org.bukkit.command.CommandSender sender, Nation nation, List<Town> kicking) static void
NationCommand.nationRename
(org.bukkit.entity.Player player, Nation nation, String newName) static void
NationCommand.nationSanctionTown
(org.bukkit.command.CommandSender sender, Nation nation, String[] args) static void
NationCommand.nationSet
(org.bukkit.command.CommandSender sender, String[] split, boolean admin, Nation nation) static void
NationCommand.nationSetConqueredTax
(org.bukkit.command.CommandSender sender, String[] split, Nation nation) static void
NationCommand.nationSetTaxPercentCap
(org.bukkit.command.CommandSender sender, String[] split, Nation nation) static void
NationCommand.nationToggle
(org.bukkit.command.CommandSender sender, String[] split, boolean admin, Nation nation) Modifier and TypeMethodDescriptionvoid
NationCommand.nationAddOrRemoveAlly
(Resident resident, Nation nation, List<Nation> targetNations, boolean add) void
NationCommand.nationEnemy
(org.bukkit.entity.Player player, Nation nation, List<Nation> enemies, boolean add) -
Uses of Nation in com.palmergames.bukkit.towny.db
Modifier and TypeMethodDescriptionabstract void
TownyDataSource.deleteNation
(Nation nation) void
TownyFlatFileSource.deleteNation
(Nation nation) void
TownySQLSource.deleteNation
(Nation nation) TownyFlatFileSource.getNationFilename
(Nation nation) abstract boolean
TownyDataSource.loadNation
(Nation nation) boolean
TownyFlatFileSource.loadNation
(Nation nation) boolean
TownySQLSource.loadNation
(Nation nation) void
TownyDatabaseHandler.mergeNation
(Nation succumbingNation, Nation prevailingNation) Merges the succumbingNation into the prevailingNation.abstract void
TownyDataSource.mergeNation
(Nation succumbingNation, Nation prevailingNation) boolean
TownyDatabaseHandler.removeNation
(@NotNull Nation nation, DeleteNationEvent.Cause cause, @Nullable org.bukkit.command.CommandSender sender) boolean
TownyDataSource.removeNation
(@NotNull Nation nation, DeleteNationEvent.Cause cause) abstract boolean
TownyDataSource.removeNation
(@NotNull Nation nation, DeleteNationEvent.Cause cause, @Nullable org.bukkit.command.CommandSender sender) void
TownyDataSource.removeNation
(Nation nation) Deprecated.since 0.100.2.96 useTownyDataSource.removeNation(Nation, com.palmergames.bukkit.towny.event.DeleteNationEvent.Cause)
instead.void
TownyDatabaseHandler.renameNation
(Nation nation, String newName) abstract void
TownyDataSource.renameNation
(Nation nation, String newName) abstract boolean
TownyDataSource.saveNation
(Nation nation) boolean
TownyFlatFileSource.saveNation
(Nation nation) boolean
TownySQLSource.saveNation
(Nation nation) -
Uses of Nation in com.palmergames.bukkit.towny.event
Modifier and TypeMethodDescriptionNationAddEnemyEvent.getEnemy()
NationPreAddEnemyEvent.getEnemy()
NationPreRemoveEnemyEvent.getEnemy()
NationRemoveEnemyEvent.getEnemy()
@Nullable Nation
NationSpawnEvent.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.ModifierConstructorDescriptionDeleteNationEvent
(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
ModifierConstructorDescriptionNationPaysDeathPriceEvent
(Account payer, double amount, Resident deadResident, org.bukkit.entity.Player killer, Nation nation) -
Uses of Nation in com.palmergames.bukkit.towny.event.economy
Modifier and TypeMethodDescriptionNationPreTransactionEvent.getNation()
NationTransactionEvent.getNation()
ModifierConstructorDescriptionNationPreTransactionEvent
(Nation nation, Transaction transaction) An Cancellable event thrown when aNation
BankAccount
is about to either receive or pay money.NationTransactionEvent
(Nation nation, Transaction transaction) An event thrown when aNation
BankAccount
either receives or pays money. -
Uses of Nation in com.palmergames.bukkit.towny.event.nation
Modifier and TypeMethodDescriptionNationPreAddAllyEvent.getAlly()
NationCalculateNationLevelNumberEvent.getNation()
NationKingChangeEvent.getNation()
NationListDisplayedValueCalculationEvent.getNation()
NationMergeEvent.getNation()
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 Nation
NationSetSpawnEvent.getNation()
NationTownLeaveEvent.getNation()
NationMergeEvent.getRemainingnation()
NationPreMergeEvent.getRemainingNation()
Modifier and TypeMethodDescriptionvoid
DisplayedNationsListSortEvent.setNations
(List<Nation> nations) ModifierConstructorDescriptionNationCalculateNationLevelNumberEvent
(Nation nation, int predeterminedLevelNumber) An event that is thrown which allows other plugins to alter a Nation's NationLevel Number. ie: 1 toTownySettings.getNationLevelMax()
.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) 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.ModifierConstructorDescriptionDisplayedNationsListSortEvent
(List<Nation> nations, ComparatorType comparatorType) -
Uses of Nation in com.palmergames.bukkit.towny.event.nation.toggle
ModifierConstructorDescriptionNationToggleEvent
(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
-
Uses of Nation in com.palmergames.bukkit.towny.event.time.dailytaxes
Modifier and TypeMethodDescriptionPreTownPaysNationTaxEvent.getNation()
TownPaysNationConqueredTaxEvent.getNation()
ModifierConstructorDescriptionPreTownPaysNationTaxEvent
(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
-
Uses of Nation in com.palmergames.bukkit.towny.invites
Modifier and TypeMethodDescriptionstatic int
InviteHandler.getSentAllyRequestsMaxAmount
(Nation sender) -
Uses of Nation in com.palmergames.bukkit.towny.object
Modifier and TypeMethodDescriptionResident.getNation()
Town.getNation()
@Nullable Nation
Resident.getNationOrNull()
@Nullable Nation
Town.getNationOrNull()
Safe to use as long asTown.hasNation()
has returned true.Modifier and TypeMethodDescriptionNation.getAllies()
Nation.getEnemies()
Nation.getMutualAllies()
Modifier and TypeMethodDescriptionvoid
void
boolean
boolean
boolean
Nation.hasMutualAlly
(Nation nation) boolean
Nation.isAlliedWith
(Nation nation) Shows if the nation is allied with the specified nation.boolean
Nation.removeAlly
(Nation nation) boolean
Nation.removeEnemy
(Nation nation) void
void
-
Uses of Nation in com.palmergames.bukkit.towny.object.comparators
-
Uses of Nation in com.palmergames.bukkit.towny.object.inviteobjects
ModifierConstructorDescriptionNationAllyNationInvite
(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
Modifier and TypeMethodDescriptionvoid
NationSpawnLevel.checkIfAllowed
(org.bukkit.entity.Player player, Nation nation) double
-
Uses of Nation in com.palmergames.bukkit.towny.permissions
Modifier and TypeMethodDescriptionstatic void
TownyPerms.updateNationPerms
(Nation nation) Update the permissions for all residents of a nation (if online) -
Uses of Nation in com.palmergames.bukkit.towny.tasks
Modifier and TypeMethodDescriptionprotected void
DailyTimerTask.collectNationTaxes
(Nation nation) Collect taxes due to the nation from it's member towns. -
Uses of Nation in com.palmergames.bukkit.towny.utils
Modifier and TypeMethodDescriptionstatic void
MoneyUtil.addNationMoneyComponentsToScreen
(Nation nation, Translator translator, StatusScreen screen) Populates the StatusScreen with the various bank and money components.static boolean
NationUtil.canAddTownsResidentCount
(Nation nation, int additionalResidents) ProximityUtil.gatherOutOfRangeTowns
(Nation nation) ProximityUtil.gatherOutOfRangeTowns
(Nation nation, Town capital) static boolean
NationUtil.hasReachedMaximumAllies
(Nation nation) static boolean
NationUtil.hasReachedMaximumResidents
(Nation nation) static boolean
NationUtil.hasReachedMaximumTowns
(Nation nation) static void
MoneyUtil.nationDeposit
(org.bukkit.entity.Player player, Resident resident, Nation nation, int amount) static void
MoneyUtil.nationWithdraw
(org.bukkit.entity.Player player, Resident resident, Nation nation, int amount) static void
ProximityUtil.removeOutOfRangeTowns
(Nation nation) static void
ProximityUtil.testTownProximityToNation
(Town town, Nation nation) static void
MoneyUtil.townDeposit
(org.bukkit.entity.Player player, Resident resident, Town town, Nation nation, int amount) Modifier and TypeMethodDescriptionstatic boolean
CombatUtil.areAllAllies
(List<Nation> possibleAllies) Test if all the listed nations are allies -
Uses of Nation in com.palmergames.bukkit.util
TownySettings.getNationLevelWithModifier(int)
instead.