Warring Nations

Configuration

Docs / Configuration. Warring Nations 5.0, pre-release.

Defaults work with no configuration. This page lists every key in server.toml and every package setting.

Files

FileWritten byReference
config/wn/server.tomlwarring-nationsBelow
config/wn/web.toml, web/cloudflare.tomlwn-webHost config files
config/wn/discord.toml, discord/cloudflare.toml, discord-main-server.tomlwn-discordHost config files
config/wn/maps.tomlwn-mapsHost config files
config/wn/packages/*.toml[folders] package_settingsPackage settings, below
config/wn/war-rulesets/*.toml[folders] war_rulesetsWar rulesets
config/wn/presets/*.wn-preset.toml[folders] presetsBelow
config/wn/lang/*.propertiesyouInstallation

A new server gets exactly one file per jar. Folders and extra files stay off until you turn on their toggle, and a toggle takes effect at the next start. A file that cannot be read is replaced by its defaults and the reason is logged. The server never fails to start over configuration.

server.toml

Restart after editing. This is the complete list.

{{hostconfig:server.toml}}

Turn on [folders] package_settings and one file per package appears in config/wn/packages/, for example wn.core.war.toml, listing every setting with its description. Edits apply at the next start. A bad value is logged and the previous value stays. Without the folder, packages use their defaults plus the preset's values. Reference generated from the package manifests: 130 settings.

164 settings in 28 groups.

server.toml [server]

KeyDefaultAllowedWhat it does
languageen_ustextThe language used for the server console, command blocks and players whose game language WN does not have. Players otherwise see WN in their own game language. Languages:
Note: Add or change wording, or a whole new language, with files in config/wn/lang (see docs/wn5/LANGUAGES.md
presetstandardtextThe server preset: a starting point that decides which gameplay packages run on a NEW server and which settings they start with. "standard" is built into the mod. Other presets are files: turn on [folders] presets, then put *.wn-preset.toml files in config/wn/presets and name one here by its file name without .wn-preset.toml. A name that is not found falls back to "standard" with an error in the log. Presets known now:
Note: A preset is applied once, when a package is first set up. Changing it later does not change settings a package already has.

server.toml [folders]

KeyDefaultAllowedWhat it does
presetsfalsetrue or falseUse the folder config/wn/presets for preset files. When on, the folder is created with standard.wn-preset.toml in it (edit it, replace it, or put other preset files beside it). A file that cannot be read is skipped with an error in the log, and standard.wn-preset.toml is written again when no usable preset file is left. Off: the built-in standard preset is used and no folder is created.
package_settingsfalsetrue or falseUse the folder config/wn/packages with one settings file per gameplay package (war, nations, treasury and so on), each listing every setting with its description. Edits apply at the next start; a bad value is reported in the log and the previous setting stays. Off: packages use their defaults plus the preset's values, and no files are created.
war_rulesetsfalsetrue or falseUse the folder config/wn/war-rulesets for war ruleset files. When on, the folder is created with chunk_capture.toml in it (the built-in ruleset, ready to copy and change). Put more ruleset files beside it, for example the ones from the alternative configs zip, and changes are picked up within seconds. A file that cannot be used is skipped with an error in the log. Off: the built-in chunk_capture ruleset is the only one.
http_providersfalsetrue or falseUse the folder config/wn/http-providers for external HTTP providers (an economy, claims, map or world protection service run outside Minecraft). When on, the folder is created with example.toml.sample in it; each *.toml file beside it installs one provider package, wn.provider.http:<file name>. A provider does not run until you approve its [trust] declaration in data/wn/framework/external-provider-approvals.tsv (the server log prints the line to add) and start it with /wnadmin packages enable. Off: no HTTP provider is installed and no folder is created.

server.toml [claims]

KeyDefaultAllowedWhat it does
provider""textWhich claims system WN uses. Exactly one runs at a time. Leave empty for automatic: WN's own nation territory (wn.core:territory) if active, otherwise Open Parties and Claims (wn.claims:open-parties-and-claims), then FTB Chunks (wn.claims:ftb-chunks). Set a package id to use that one instead; the others show as INACTIVE-NOT-SELECTED in /wn claims status.
external_war_accessfalsetrue or falseLet an attacker in an active war break blocks on Open Parties and Claims land that WN war breach says is breachable. WN registers a per-chunk access hook with that mod; WN Conform still judges every action, and breaking explosions are not covered. Off by default: external claims are otherwise protected from war.
syncbidirectionaltextKeeps WN nation land and Open Parties and Claims in step, so a chunk a nation owns is also claimed there (under the nation, with one party per nation) and the two never disagree. Needs the Open Parties and Claims package enabled. WN land is the source of truth. FTB Chunks is not supported. Options:
sync_conflictterritorytextWhat to do when a nation owns a chunk that a player or party also claimed in Open Parties and Claims. Options:
sync_personal_claimsforbidtextHow personal Open Parties and Claims claims are treated while sync is on. Options:
  • exclusive: Allowed, but never on nation land and a nation cannot take a personal claim without the claimer.
  • ignore: Not policed except that a claim on nation land is still refused.
  • forbid: No personal claims: a nation member's claim becomes nation land (see sync_adopt_member_claims) and anyone else is told to join or found a nation. This is the default.
sync_adopt_member_claimstruetrue or falseWhen on, a chunk claimed in Open Parties and Claims by a nation member becomes nation land, if WN land rules (rank, allowance, adjacency) allow it, and the claim is refused up front when they do not. This keeps WN land and Open Parties and Claims 1:1. When off, member claims stay personal.
sync_provider_releaserestoretextWhat happens when nation land is removed inside Open Parties and Claims by an admin. Options:
  • restore: WN puts the claim back.
  • release: WN releases the chunk from the nation too.
sync_interval_seconds605 to 86400How often, in seconds, the sync compares the whole of WN land with Open Parties and Claims to repair drift (for example changes made while the server was off). Changes are also applied within a moment of happening.
sync_budget_chunks_per_tick641 to 100000The most chunks the sync checks in one server tick. Lower it if a huge world makes ticks slow.
sync_budget_millis_per_tick41 to 50The most milliseconds the sync may use in one server tick, whichever of this and the chunk budget is reached first.

server.toml [economy]

KeyDefaultAllowedWhat it does
provider""textWhich economy WN uses. Exactly one runs at a time. Leave empty for automatic: WN's own ledger (wn.economy:ledger) if installed, otherwise Impactor (wn.economy:impactor), then SG Economy (wn.economy:sg-economy); an earlier /wnadmin packages provider choice is kept. Set a package id to use that one instead; the others show as INACTIVE-NOT-SELECTED in /wnadmin economy status.

server.toml [packages]

KeyDefaultAllowedWhat it does
trust_file_permissionsrefusetextWhat to do when data/wn/framework/package-trust.tsv (the list of package signing keys) can be written by every user on this machine. Anyone who can write it can add a signer and so deliver code. Options:
  • refuse: Do not load it: no package signatures are trusted until you chmod o-w the file.
  • warn: Load it and log a warning.
  • ignore: Do not check.

Note: Only checked on file systems with POSIX permissions.
downgrade_protectiontruetrue or falseRefuse to install a package version older than the highest version ever installed on this world, even after an uninstall. A validly signed old release can otherwise be put back to bring back a fixed vulnerability.
downgrade_allowed[]listPackage ids (for example "wn.core:nations") that may be installed at an older version than before. Installing one resets its highest-version record to that version. Remove the entry again afterwards.
Warning: Leaving an id here permanently disables downgrade protection for that package.
signer_rotation_allowed[]listPackage ids (for example "wn.core:nations") whose upgrade may be signed by a different key than the one that installed the running version. By default an upgrade must come from the same signing key, so another publisher in the same namespace cannot replace a package. Remove the entry once the new key has installed it.
Warning: Leaving an id here lets any key trusted for that namespace upgrade the package.
revoked_signer_actiondisabletextWhat to do when a package that is running now was signed by a key that has since been revoked (removed from package-trust.tsv). Checked on every /wnadmin packages scan. After a restart, archives from a revoked key are never installed regardless of this setting. Options:
audit_logtruetrue or falseAppend installs, upgrades, uninstalls, refused downgrades and revoked-signer findings to data/wn/framework/package-audit.log. Each line is chained to the previous one so later edits are detectable.

server.toml [permissions]

KeyDefaultAllowedWhat it does
wnadmin_level41 to 4The vanilla operator level a command source needs to use /wnadmin and to run operator-only /wn package commands. The same level means the same on every Minecraft version WN supports. 4 is owner, 3 admin, 2 gamemaster, 1 moderator. A missing, invalid or out-of-range value is treated as 4, and the console and command blocks follow the vanilla level they hold.
Warning: Lowering this lets every operator of that level install, remove and configure packages, which can run code on the server.

server.toml [commands]

KeyDefaultAllowedWhat it does
require_wn_prefixtruetrue or falseWhether WN commands must be typed with the /wn prefix. On (default): only /wn nation create ... works. Off: each command word of an installed package also works as its own command, so /nation create ..., /war declare ... and /land claim ... behave exactly like /wn nation create .... /wn ... keeps working either way and is the only form that is never skipped. A word that another command already uses (for example /help, /team, /tp, /give, /list, /me, /say) is never replaced: it is skipped with one warning in the log. Words of packages that are installed but not active are registered too and answer that the package is not active; the command list on players' screens is refreshed when packages are enabled, disabled, installed or removed. Players see an unprefixed command only when they may use one of its active commands; operators also see the words of inactive packages.
Note: The extra command words are added on the first server tick (and again after /reload), when every other mod's commands already exist, so WN never takes a word another command uses.
root_aliases_skip[]listCommand words that never get an unprefixed form, for example ["war"] keeps only /wn war ... Only used when require_wn_prefix is false. Words are lower case, without the slash.
root_aliases_only[]listWhen not empty, only these command words get an unprefixed form, for example ["nation", "land"]; every other word needs /wn. Empty means every word. Only used when require_wn_prefix is false. root_aliases_skip still removes words from this list.
Note: The prefixed form /wn <word> works for every command whatever these settings say.
help_page_size53 to 20How many entries one page of in-game help shows (each entry is a command with its short description) (/wn help, /wn help nation, /nation help). Longer lists continue on the next page, which players open with /wn help <word> 2. Players only see help for commands they may use.
confirm_enabledtruetrue or falseAsk players to confirm commands they might regret. A guarded command (see confirm_commands) is not run when a player types it: they are told what it will do and must type /confirm within confirm_timeout_seconds. Typing another WN command cancels it. The console, command blocks, Discord, the website and remote ingress cannot answer a prompt, so they always run directly. Off: every command runs at once and /confirm only says nothing is waiting.
confirm_timeout_seconds305 to 300How many seconds a player has to type /confirm after a guarded command before it is dropped.
confirm_commandsthe standard list (see the description)textCommand ids that need /confirm: the irreversible, destructive or costly ones (disbanding a nation, kicking, leaving, giving away leadership, surrendering, accepting peace, removing a package). Routine commands such as claiming land, paying, balance, info, invite and the list commands are not here. An id is the package command id, for example nation-disband (docs/wn5/DECISIONS.md lists the standard ones). Empty turns confirmation off. An id no installed package declares is reported in the log and ignored.
Note: To keep the standard list and only change a few, leave this alone and use confirm_commands_add and confirm_commands_remove.
confirm_commands_add[]listCommand ids to guard in addition to confirm_commands, for example ["nation-rename", "treasury-take"].
confirm_commands_remove[]listCommand ids to take out of the guarded set, for example ["nation-kick"] if kicking should run at once.
confirm_staff_commandstruetrue or falseAlso ask operators to confirm guarded commands they type in game, because staff can regret a disband too. Off: operators in game run guarded commands at once. The console never asks.

Nations

Package wn.core:nations. Set in config/wn/packages/ once [folders] package_settings is on.
KeyDefaultAllowedWhat it does
renameCooldownHours240 to 8760Minimum hours between two renames of the same nation by its players. 0 allows renaming at any time. The first rename after founding is never delayed, and an operator rename ignores it.
creationRequiresApprovalfalsetrue or falseWhen true, founding a nation first needs staff approval through the approvals queue (/wn approvals, or the Discord approvals channel). Off by default, so anyone may found a nation. Needs wn.core:approvals to be active; without it founding is refused while this is on.

Land

Package wn.core:territory. Set in config/wn/packages/ once [folders] package_settings is on.
KeyDefaultAllowedWhat it does
baseClaims100 to 100000Chunks every nation may claim before bonuses are added.
claimsPerMember50 to 10000Extra claimable chunks for each member of the nation.
requireContiguoustruetrue or falseWhether each new claim must touch land the nation already holds. Off lets nations claim scattered chunks.
minimumRankLevel10 to 100Minimum nation rank allowed: 0 = member, 1 = officer, 2 = leader. Applies to claiming and releasing land.
claimsPerLevel20 to 10000Extra claimable chunks for each progression level the nation has reached.
allyBuildDefaultfalsetrue or falseWhether allied nations may build on each other's land by default, before any specific grant.
grantMinimumRankLevel10 to 100Minimum nation rank allowed: 0 = member, 1 = officer, 2 = leader. Applies to granting or removing building access on a claim.
maxGrantsPerChunk161 to 64Most players or nations that may hold a build grant on one chunk.

War

Package wn.core:war. Set in config/wn/packages/ once [folders] package_settings is on.
KeyDefaultAllowedWhat it does
minimumRankLevel10 to 100Minimum nation rank allowed: 0 = member, 1 = officer, 2 = leader. Applies to declaring war, surrendering and ceasefires.
defaultRuleset"chunk_capture"text, 1 to 64 charactersRuleset used when a player writes "default" while declaring war. WN ships "chunk_capture"; with the war rulesets folder on (config/wn/server.toml, [folders] war_rulesets = true) any installed ruleset name works, for example "skirmish" or "siege".
confirmDeclarationsfalsetrue or falseWhether the declaring player must repeat the command to confirm. Helps stop accidental declarations.

Peace

Package wn.core:peace-negotiation. Set in config/wn/packages/ once [folders] package_settings is on.
KeyDefaultAllowedWhat it does
minimumRankLevel20 to 100Minimum nation rank allowed: 0 = member, 1 = officer, 2 = leader. Applies to proposing and answering peace terms.
offerSeconds180060 to 86400Seconds a peace offer stays open before it lapses.
ultimatumGraceSeconds90060 to 86400Seconds the receiving nation has to answer an ultimatum before its terms are applied.
ultimatumMinWarSeconds18000 to 604800How long a war must have lasted before an ultimatum may be sent. 0 allows ultimatums at once.
matureSeconds18001 to 604800How long a war must have lasted before peace terms based on its score may be proposed.
proposalCooldownSeconds300 to 3600Seconds a side must wait between peace proposals.
maxProposalsPerWar121 to 100Most peace proposals one side may send during a single war.
maxMediationsPerWar30 to 20Most times a third nation may be asked to mediate a single war. 0 disables mediation.
tributeInstallments41 to 12Number of payments a tribute is split into.
tributeIntervalSeconds8640060 to 2592000Seconds between tribute payments.
normalizerPoints401 to 100000Score points that count as a full war's worth when peace terms are weighed. Larger values make terms depend less on small score gaps.
budgetPoints1001 to 1000Points a winner may spend on demands in a peace offer. Each demand costs points according to its size.
maxCessionPercent250 to 100Largest share of the loser's claimed land, in percent, that one peace deal may transfer.
maxReparationsPercent300 to 100Largest share of the loser's treasury, in percent, that may be demanded as reparations.
maxTributePercent100 to 100Largest share of the loser's treasury, in percent, that a tribute may take in total.
maxTreasuryTakePercent600 to 100Largest share of the loser's treasury, in percent, that all money demands in one deal may take together.
minKeepChunks10 to 1000Chunks the losing nation always keeps, however much land the terms ask for.
maxCessionChunks500 to 1000Most chunks one peace deal may transfer, whatever the percentage limit says.
mediationApprovalfalsetrue or falseWhether a mediator's proposal needs staff approval (a request of kind peace.mediate in /wn approvals and the Discord approvals channel) before it can be offered. Off lets a mediator's terms be offered directly. The two warring nations always still have to accept.
scoreWeights"kills=5000,occupation=17,*=1000"text, 1 to 256 charactersHow war score is converted into peace-deal points, as comma separated name=value pairs. "*" is the value for every score type not listed. Example: "kills=5000,occupation=17,*=1000".

Diplomacy

Package wn.core:diplomacy. Set in config/wn/packages/ once [folders] package_settings is on.
KeyDefaultAllowedWhat it does
minimumRankLevel10 to 100Minimum nation rank allowed: 0 = member, 1 = officer, 2 = leader. Applies to proposing, answering and breaking diplomatic agreements. When a permissions provider is active, its diplomacy key decides instead and this rank is not checked.
allowAlliancestruetrue or falseWhether nations may form alliances. Off removes alliances from diplomacy entirely.
allowNonAggressionPactstruetrue or falseWhether nations may agree to non-aggression pacts. Off removes pacts from diplomacy entirely.

Government

Package wn.core:government. Set in config/wn/packages/ once [folders] package_settings is on.
KeyDefaultAllowedWhat it does
votingRankLevel00 to 100Minimum nation rank allowed: 0 = member, 1 = officer, 2 = leader. Lowest rank that may vote on a motion; 0 lets every member vote.
proposalRankLevel00 to 100Minimum nation rank allowed: 0 = member, 1 = officer, 2 = leader. Lowest rank that may start a motion; 0 lets every member propose.
quorumPercent501 to 100Percent of the nation's members who must vote for a motion to count. A motion that falls short fails when it closes.
approvalPercent501 to 99Percent of votes cast that must be "yes" for a motion to pass. The default of 50 means more than half.
durationMinutes14401 to 525600Minutes a motion stays open. A motion also closes early once every member has voted.
maxOpenMotions51 to 50Motions one nation may have open at the same time.
offices"chancellor,marshal,treasurer"text, 1 to 256 charactersComma separated names of the offices a nation can fill, for example "chancellor,marshal,treasurer". Offices are recorded and shown; other systems may use them in permissions.

Nation treasury

Package wn.core:treasury. Set in config/wn/packages/ once [folders] package_settings is on.
KeyDefaultAllowedWhat it does
minimumPaymentRankLevel20 to 100Minimum nation rank allowed: 0 = member, 1 = officer, 2 = leader. Applies to paying money out of the nation treasury.
maximumBalance10000000000001 to 2305843009213694000Largest amount a nation treasury may hold. Deposits that would exceed it are refused.

Economy ledger

Package wn.economy:ledger. Set in config/wn/packages/ once [folders] package_settings is on.
KeyDefaultAllowedWhat it does
defaultCurrency"WNC"text, 3 to 12 charactersCurrency code used when none is given, 3 to 12 characters such as "WNC". Existing balances keep the currency they were recorded in.
decimals00 to 8How many decimal places balances are shown with. Commands still take whole minor units: with 2 decimals, typing 150 pays 1.50. 0 means whole numbers only.
allowPlayerPaymentstruetrue or falseWhether players may use /wn eco pay. Off does not stop other routes: a bridge deposit followed by a withdrawal can still move money between members of a nation. Nation, shop and administrator transfers are never affected.

Treasury bridge

Package wn.economy:treasury-bridge. Set in config/wn/packages/ once [folders] package_settings is on.
KeyDefaultAllowedWhat it does
currency"WNC"text, 3 to 12 charactersLedger currency code that deposits and withdrawals use, 3 to 12 capital letters or digits. It must be a currency the ledger knows, normally the ledger's default currency.
maximumAmount10000001 to 1000000000000Most one deposit or withdrawal may move.
minimumWithdrawRankLevel20 to 100Minimum nation rank allowed to withdraw from the treasury: 0 = member, 1 = officer, 2 = leader. Deposits are open to every member. When a permissions provider is active, its withdraw key decides instead and this rank is not checked.
depositsEnabledtruetrue or falseWhether members may move money from their wallet into the nation treasury.
withdrawalsEnabledtruetrue or falseWhether authorised members may move money from the nation treasury into their wallet. Withdrawals are limited to what members have deposited (per nation, or in total with reserveMode pooled), so a treasury filled by gameplay cannot create wallet money.
reserveMode"per-nation"text, 6 to 10 charactersWhere deposited wallet money is held. per-nation keeps one ledger account per nation, so a nation can only withdraw what its own members deposited. pooled keeps one shared account for all nations, so any nation with treasury money can withdraw other nations' deposits until the pool is empty. Changing this on a server with deposits strands the money in the old account until an operator moves it.
disbandDestination"members"text, 3 to 80 charactersWhere a disbanded nation's reserve goes: members pays it back pro rata to the players who deposited (net of their withdrawals), or give a ledger account id such as system:treasury-unclaimed or player:<uuid> to send it all there.
disbandFallbackAccount"system:treasury-unclaimed"text, 3 to 80 charactersLedger account that receives a disband payout that cannot go to its member, and the reserve of a nation that has no deposit records. The money is never deleted.

Bounties

Package wn.core:bounties. Set in config/wn/packages/ once [folders] package_settings is on.
KeyDefaultAllowedWhat it does
payForOwnMemberKillsfalsetrue or falseWhether a nation collects a bounty when its own member is the victim. Off by default, because it lets cooperating nations move treasury money to each other with staged kills.
minimumAmount101 to 1000000000Smallest amount a bounty may be placed for, in the nation treasury's currency.
minimumRankLevel10 to 100Minimum nation rank allowed: 0 = member, 1 = officer, 2 = leader. Applies to placing and cancelling bounties.

Approvals

Package wn.core:approvals. Set in config/wn/packages/ once [folders] package_settings is on.
KeyDefaultAllowedWhat it does
maxPendingPerRequester51 to 100Approval requests one player may have waiting at the same time. Further requests are refused until older ones are answered or expire.
maxPending5001 to 5000Approval requests that may wait across the whole server at the same time.
requestTtlMinutes14401 to 10080Minutes an unanswered approval request stays open before it expires on its own.
approvedTtlMinutes14401 to 10080Minutes an approved request stays usable. After this the requester must ask again.
denyCooldownMinutes100 to 1440Minutes a requester must wait before asking again after a denial. 0 disables the wait.
retentionDays71 to 90Days that answered and expired requests are kept in the history before they are deleted.
confirmationTtlSeconds305 to 300Seconds a player has to repeat a dangerous command to confirm it. After this the confirmation is forgotten.

Progression

Package wn.core:progression. Set in config/wn/packages/ once [folders] package_settings is on.
KeyDefaultAllowedWhat it does
levelDivisor1001 to 1000000Experience that makes a nation level 2. Level L is first reached at levelDivisor * (L - 1) ^ (1 / levelExponent) experience, so a larger divisor makes every level slower. The default 100 with exponent 0.5 is the WN 4.0 curve.
levelExponent0.50.25 to 1How fast levels get harder. 0.5 means the experience for a level grows with the square of the level (the WN 4.0 curve); 1.0 means every level costs the same; lower values make high levels much more expensive. Accepted values are 0.25 to 1.0.

Claims protection

Package wn.conform:claims-protection. Set in config/wn/packages/ once [folders] package_settings is on.
KeyDefaultAllowedWhat it does
cacheSeconds20 to 60Seconds a claim lookup result is reused before asking the claims provider again. Higher values cost less server time but make claim changes take effect later. 0 disables caching.
denialLogSize250 to 500How many recent protection denials are kept for /wnadmin diagnostics. 0 keeps none.
failClosedtruetrue or falseWhat happens when the claims provider cannot answer. On denies the action (safe); off allows it.
dryRunfalsetrue or falseWhen on, protection decisions are logged but never enforced. Use it to preview what protection would block before turning it on.
unknownActorPolicy"DENY"text, 4 to 5 charactersWhat to do when the player or source of an action cannot be identified, for example some machines. "DENY" blocks the action; "ALLOW" lets it through.
claimsAuthority"BOTH_DENY_WINS"text, 8 to 14 charactersWhich claim systems judge when WN's own territory claims (/wn land claim) and the selected claims provider (WN local claims, Open Parties and Claims, FTB Chunks) both exist. "TERRITORY" trusts only territory. "PROVIDER" trusts only the selected provider. "BOTH_DENY_WINS" asks both and denies when either claim refuses the player (safest). "ANY_ALLOWS" asks both and allows when any system that claims the block grants access; land neither claims stays open. Territory is only consulted while the territory package is active.
blockBreaktruetrue or falseProtect claimed land from block breaking by players who lack access.
blockInteracttruetrue or falseProtect claimed land from use of doors, levers, buttons and containers by players who lack access.
blockPlacetruetrue or falseProtect claimed land from block placing by players who lack access.
entityAttacktruetrue or falseProtect entities on claimed land from attacks by players who lack access.
entityInteracttruetrue or falseProtect entities on claimed land from interaction (trading, riding, name tags) by players who lack access.
fluidPlacetruetrue or falseStop buckets and fluid flow from crossing into claimed land from outside.
pistonMovetruetrue or falseStop pistons from pushing or pulling blocks across a claim border.
growthSpreadtruetrue or falseStop growth and spread (crops and trees growing outward, vines, fire, grass, sculk, modded spreaders) from crossing into a claim the growing block is not part of. Growth inside one claim, between claims of one owner and into unclaimed land is unaffected.
itemTransporttruetrue or falseStop hoppers, droppers and hopper minecarts from moving items across a claim edge in either direction (a hopper outside a claim draining a chest inside it). Transfers inside one claim, between claims of one owner and between unclaimed containers are unaffected.
dispenserActtruetrue or falseStop dispensers from acting on a block in front of them that lies in a claim the dispenser is not part of (placing blocks, igniting, emptying buckets, equipping armor stands).
mobGrieftruetrue or falseCancel block changes made by mobs inside claims (enderman pickup and placing, zombies breaking doors, ravagers, silverfish, trampling) unless the mob is listed in mobGriefAllowedEntities.
mobGriefAllowedEntities"minecraft:allay,minecraft:armadillo,minecraft:bee,minecraft:fox,minecraft:iron_golem,minecraft:rabbit,minecraft:sheep,minecraft:snow_golem,minecraft:sniffer,minecraft:turtle,minecraft:villager,minecraft:wandering_trader"text, 0 to 2048 charactersComma separated entity type ids that may still change blocks inside claims (farming villagers, sheep eating grass and similar). A bare name such as villager means minecraft:villager. Any other mob, modded ones included, is denied inside claims.
projectileHittruetrue or falseCancel projectiles shot by a player (or by a dispenser) that hit a claimed non-player entity or a button, pressure plate or similar trigger the shooter may not use. Projectiles shot by mobs are never judged.
containerOpentruetrue or falseCancel a player opening a container menu (chest, barrel, container minecart or modded machine) in a claim the player may not use, judged at the container's position. A menu with no position (ender chest, crafting table) is never judged.
commandstruetrue or falseJudge world-editing commands (setblock, fill, clone, place, fillbiome, item, data, loot) against claims. Server operators and the console are never judged. Needs the host's command wrapper to be attached.
automationCommands"JUDGE"text, 5 to 8 charactersWhat happens to world-editing commands run by command blocks, command-block minecarts, datapack functions and signs. "JUDGE" treats them as an unattributed machine at the command's position (denied across claim borders and into claims they are not part of); "EXEMPT" never judges them; "OPERATOR" skips them only when the command source itself holds operator rights ("LEVEL" is accepted as an alias).
explosiontruetrue or falseStop explosions from damaging blocks in claimed land. Warring nations' breach rules can still allow damage during a war.

Breach

Package wn.core:war-breach. Set in config/wn/packages/ once [folders] package_settings is on.
KeyDefaultAllowedWhat it does
breachEnabledtruetrue or falseMaster switch for breaching. Off keeps a defender's land fully protected even during a war.
breachBreaktruetrue or falseWhether attackers may break blocks on enemy land during a war.
breachPlacetruetrue or falseWhether attackers may place blocks on enemy land during a war.
breachInteractfalsetrue or falseWhether attackers may use doors, buttons, levers and similar blocks on enemy land during a war.
breachContainersfalsetrue or falseWhether attackers may open containers on enemy land during a war. Needs breachInteract to be on as well.
breachContainerBlocks"chest,barrel,shulker_box,hopper,furnace,smoker,dropper,dispenser,brewing_stand,crafter,lectern,chiseled_bookshelf,decorated_pot"text, 0 to 1024 charactersComma separated block names counted as containers for breachContainers, without the "minecraft:" prefix.

Rollback

Package wn.core:war-rollback. Set in config/wn/packages/ once [folders] package_settings is on.
KeyDefaultAllowedWhat it does
maxEntriesPerWar200001 to 500000Most block changes remembered per war. When the limit is reached the oldest are forgotten and cannot be restored.
maxWars81 to 64Wars whose block changes are remembered at once.
retentionHours1681 to 8760Hours a finished war's block changes are kept waiting for restoration before they are discarded.
restoreDelaySeconds300 to 86400Seconds to wait after a war ends before restoration begins.
blocksPerSecond2001 to 20000Blocks restored per second. Lower values reduce server load.
maxBlocksPerStep501 to 5000Most blocks restored in a single server tick.
retrySeconds301 to 3600Seconds to wait before retrying chunks that were not loaded when restoration reached them.
restoreCapturedLandfalsetrue or falseWhether land that changed owner during the war is also restored. Off leaves captured land as the attackers left it.
restoreUnverifiedfalsetrue or falseWhether blocks are restored even when the current block cannot be confirmed to be the one the war placed. Off skips them so later player edits are never overwritten.
costPerBlock00 to 1000000Treasury cost per restored block, charged to the nation named in cost_recipient. 0 makes restoration free.
costRecipient""text, 0 to 128 charactersThe account that RECEIVES restoration costs: each land owner whose blocks are restored pays this recipient costPerBlock per block. Empty charges nobody.
storageFile""text, 0 to 512 charactersWhere the remembered block changes are saved. Leave empty to use the default file beside the WN data. Change it only to move the data.

War spoils

Package wn.core:war-spoils. Set in config/wn/packages/ once [folders] package_settings is on.
KeyDefaultAllowedWhat it does
landChunks30 to 1000Chunks of land the winner takes from the loser when a war ends in victory. 0 transfers no land.
treasuryPercent100 to 100Percent of the loser's treasury the winner receives at the end of a war.
includeSurrendertruetrue or falseWhether the winner also receives spoils when the loser surrenders. Off gives spoils only for wars played to the end.

War rules

Package wn.core:war-rules. Set in config/wn/packages/ once [folders] package_settings is on.
KeyDefaultAllowedWhat it does
objectivePoints""text, 0 to 1024 charactersNamed capture points for objective wars, as comma separated name@world:chunkX:chunkZ entries, for example "keep@minecraft:overworld:10:-4". A ruleset file uses them by writing points = "${objectivePoints}" in its score.objectives block (the objectives alternatives do); such a ruleset cannot be declared until this is filled in.

Presence

Package wn.core:presence. Set in config/wn/packages/ once [folders] package_settings is on.
KeyDefaultAllowedWhat it does
afkAfterSeconds600 to 3600Seconds without movement before a player counts as away. Away players do not count toward occupation scoring. 0 disables the check.
resumeSamples21 to 10Consecutive movement checks needed before an away player counts as present again. Checks count only while each is at most 10 seconds after the one before; a longer gap starts the count over.
excludeCreativefalsetrue or falseWhether players in creative mode are ignored when measuring presence.
excludedDimensions""text, 0 to 1024 charactersComma separated dimension names where presence is not counted, for example "minecraft:the_end". Empty counts every dimension.

Progression awards

Package wn.core:progression-awards. Set in config/wn/packages/ once [folders] package_settings is on.
KeyDefaultAllowedWhat it does
foundingXp500 to 1000000Nation experience awarded when a nation is founded.
memberJoinXp100 to 1000000Nation experience awarded each time a member joins.
claimXp50 to 1000000Nation experience awarded for each chunk claimed.
warWinXp2000 to 1000000Nation experience awarded to the winner of a war.
warLossXp250 to 1000000Nation experience awarded to the loser of a war. Usually lower than a win.

Map layers

Package wn.core:map-layers. Set in config/wn/packages/ once [folders] package_settings is on.
KeyDefaultAllowedWhat it does
maxChunks20000100 to 100000Most claimed chunks sent to a map in one update. Raise it for very large worlds, lower it to save bandwidth.
frontlineActiveColor"#d62828"text, 7 to 7 charactersColour of the war frontline and of nation land for a war that is being fought. Written as #rrggbb, for example #d62828. A value that is not #rrggbb is ignored and the default is used.
frontlineTruceColor"#8d99ae"text, 7 to 7 charactersColour of the war frontline and of nation land while a war is in a truce. Written as #rrggbb. A value that is not #rrggbb is ignored and the default is used.
frontlinePreparingColor"#f4a261"text, 7 to 7 charactersColour of the war frontline and of nation land while a war is being prepared. Written as #rrggbb. A value that is not #rrggbb is ignored and the default is used.

Presets

standard is built in. With [folders] presets = true it is written to config/wn/presets/standard.wn-preset.toml, and any other *.wn-preset.toml you put beside it can be chosen with preset under [server]. A preset is applied once, when a package is first set up on a world. Changing it later does not change settings a package already has. Alternatives (anarchy-pvp, cooperative-no-war, competitive-factions, civ-diplomacy, roleplay-curated, no-economy) are in the alternative configs zip, together with the war rulesets.

Type at least two letters. Esc closes.