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
| File | Written by | Reference |
|---|---|---|
config/wn/server.toml | warring-nations | Below |
config/wn/web.toml, web/cloudflare.toml | wn-web | Host config files |
config/wn/discord.toml, discord/cloudflare.toml, discord-main-server.toml | wn-discord | Host config files |
config/wn/maps.toml | wn-maps | Host config files |
config/wn/packages/*.toml | [folders] package_settings | Package settings, below |
config/wn/war-rulesets/*.toml | [folders] war_rulesets | War rulesets |
config/wn/presets/*.wn-preset.toml | [folders] presets | Below |
config/wn/lang/*.properties | you | Installation |
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]
| Key | Default | Allowed | What it does |
|---|---|---|---|
language | en_us | text | The 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 |
preset | standard | text | The 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]
| Key | Default | Allowed | What it does |
|---|---|---|---|
presets | false | true or false | Use 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_settings | false | true or false | Use 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_rulesets | false | true or false | Use 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_providers | false | true or false | Use 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]
| Key | Default | Allowed | What it does |
|---|---|---|---|
provider | "" | text | Which 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_access | false | true or false | Let 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. |
sync | bidirectional | text | Keeps 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_conflict | territory | text | What to do when a nation owns a chunk that a player or party also claimed in Open Parties and Claims. Options: |
sync_personal_claims | forbid | text | How personal Open Parties and Claims claims are treated while sync is on. Options:
|
sync_adopt_member_claims | true | true or false | When 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_release | restore | text | What happens when nation land is removed inside Open Parties and Claims by an admin. Options:
|
sync_interval_seconds | 60 | 5 to 86400 | How 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_tick | 64 | 1 to 100000 | The most chunks the sync checks in one server tick. Lower it if a huge world makes ticks slow. |
sync_budget_millis_per_tick | 4 | 1 to 50 | The most milliseconds the sync may use in one server tick, whichever of this and the chunk budget is reached first. |
server.toml [economy]
| Key | Default | Allowed | What it does |
|---|---|---|---|
provider | "" | text | Which 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]
| Key | Default | Allowed | What it does |
|---|---|---|---|
trust_file_permissions | refuse | text | What 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:
Note: Only checked on file systems with POSIX permissions. |
downgrade_protection | true | true or false | Refuse 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 | [] | list | Package 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 | [] | list | Package 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_action | disable | text | What 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_log | true | true or false | Append 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]
| Key | Default | Allowed | What it does |
|---|---|---|---|
wnadmin_level | 4 | 1 to 4 | The 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]
| Key | Default | Allowed | What it does |
|---|---|---|---|
require_wn_prefix | true | true or false | Whether 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 | [] | list | Command 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 | [] | list | When 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_size | 5 | 3 to 20 | How 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_enabled | true | true or false | Ask 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_seconds | 30 | 5 to 300 | How many seconds a player has to type /confirm after a guarded command before it is dropped. |
confirm_commands | the standard list (see the description) | text | Command 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 | [] | list | Command ids to guard in addition to confirm_commands, for example ["nation-rename", "treasury-take"]. |
confirm_commands_remove | [] | list | Command ids to take out of the guarded set, for example ["nation-kick"] if kicking should run at once. |
confirm_staff_commands | true | true or false | Also 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
| Key | Default | Allowed | What it does |
|---|---|---|---|
renameCooldownHours | 24 | 0 to 8760 | Minimum 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. |
creationRequiresApproval | false | true or false | When 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
| Key | Default | Allowed | What it does |
|---|---|---|---|
baseClaims | 10 | 0 to 100000 | Chunks every nation may claim before bonuses are added. |
claimsPerMember | 5 | 0 to 10000 | Extra claimable chunks for each member of the nation. |
requireContiguous | true | true or false | Whether each new claim must touch land the nation already holds. Off lets nations claim scattered chunks. |
minimumRankLevel | 1 | 0 to 100 | Minimum nation rank allowed: 0 = member, 1 = officer, 2 = leader. Applies to claiming and releasing land. |
claimsPerLevel | 2 | 0 to 10000 | Extra claimable chunks for each progression level the nation has reached. |
allyBuildDefault | false | true or false | Whether allied nations may build on each other's land by default, before any specific grant. |
grantMinimumRankLevel | 1 | 0 to 100 | Minimum nation rank allowed: 0 = member, 1 = officer, 2 = leader. Applies to granting or removing building access on a claim. |
maxGrantsPerChunk | 16 | 1 to 64 | Most players or nations that may hold a build grant on one chunk. |
War
| Key | Default | Allowed | What it does |
|---|---|---|---|
minimumRankLevel | 1 | 0 to 100 | Minimum nation rank allowed: 0 = member, 1 = officer, 2 = leader. Applies to declaring war, surrendering and ceasefires. |
defaultRuleset | "chunk_capture" | text, 1 to 64 characters | Ruleset 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". |
confirmDeclarations | false | true or false | Whether the declaring player must repeat the command to confirm. Helps stop accidental declarations. |
Peace
| Key | Default | Allowed | What it does |
|---|---|---|---|
minimumRankLevel | 2 | 0 to 100 | Minimum nation rank allowed: 0 = member, 1 = officer, 2 = leader. Applies to proposing and answering peace terms. |
offerSeconds | 1800 | 60 to 86400 | Seconds a peace offer stays open before it lapses. |
ultimatumGraceSeconds | 900 | 60 to 86400 | Seconds the receiving nation has to answer an ultimatum before its terms are applied. |
ultimatumMinWarSeconds | 1800 | 0 to 604800 | How long a war must have lasted before an ultimatum may be sent. 0 allows ultimatums at once. |
matureSeconds | 1800 | 1 to 604800 | How long a war must have lasted before peace terms based on its score may be proposed. |
proposalCooldownSeconds | 30 | 0 to 3600 | Seconds a side must wait between peace proposals. |
maxProposalsPerWar | 12 | 1 to 100 | Most peace proposals one side may send during a single war. |
maxMediationsPerWar | 3 | 0 to 20 | Most times a third nation may be asked to mediate a single war. 0 disables mediation. |
tributeInstallments | 4 | 1 to 12 | Number of payments a tribute is split into. |
tributeIntervalSeconds | 86400 | 60 to 2592000 | Seconds between tribute payments. |
normalizerPoints | 40 | 1 to 100000 | Score points that count as a full war's worth when peace terms are weighed. Larger values make terms depend less on small score gaps. |
budgetPoints | 100 | 1 to 1000 | Points a winner may spend on demands in a peace offer. Each demand costs points according to its size. |
maxCessionPercent | 25 | 0 to 100 | Largest share of the loser's claimed land, in percent, that one peace deal may transfer. |
maxReparationsPercent | 30 | 0 to 100 | Largest share of the loser's treasury, in percent, that may be demanded as reparations. |
maxTributePercent | 10 | 0 to 100 | Largest share of the loser's treasury, in percent, that a tribute may take in total. |
maxTreasuryTakePercent | 60 | 0 to 100 | Largest share of the loser's treasury, in percent, that all money demands in one deal may take together. |
minKeepChunks | 1 | 0 to 1000 | Chunks the losing nation always keeps, however much land the terms ask for. |
maxCessionChunks | 50 | 0 to 1000 | Most chunks one peace deal may transfer, whatever the percentage limit says. |
mediationApproval | false | true or false | Whether 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 characters | How 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
| Key | Default | Allowed | What it does |
|---|---|---|---|
minimumRankLevel | 1 | 0 to 100 | Minimum 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. |
allowAlliances | true | true or false | Whether nations may form alliances. Off removes alliances from diplomacy entirely. |
allowNonAggressionPacts | true | true or false | Whether nations may agree to non-aggression pacts. Off removes pacts from diplomacy entirely. |
Government
| Key | Default | Allowed | What it does |
|---|---|---|---|
votingRankLevel | 0 | 0 to 100 | Minimum nation rank allowed: 0 = member, 1 = officer, 2 = leader. Lowest rank that may vote on a motion; 0 lets every member vote. |
proposalRankLevel | 0 | 0 to 100 | Minimum nation rank allowed: 0 = member, 1 = officer, 2 = leader. Lowest rank that may start a motion; 0 lets every member propose. |
quorumPercent | 50 | 1 to 100 | Percent of the nation's members who must vote for a motion to count. A motion that falls short fails when it closes. |
approvalPercent | 50 | 1 to 99 | Percent of votes cast that must be "yes" for a motion to pass. The default of 50 means more than half. |
durationMinutes | 1440 | 1 to 525600 | Minutes a motion stays open. A motion also closes early once every member has voted. |
maxOpenMotions | 5 | 1 to 50 | Motions one nation may have open at the same time. |
offices | "chancellor,marshal,treasurer" | text, 1 to 256 characters | Comma 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
| Key | Default | Allowed | What it does |
|---|---|---|---|
minimumPaymentRankLevel | 2 | 0 to 100 | Minimum nation rank allowed: 0 = member, 1 = officer, 2 = leader. Applies to paying money out of the nation treasury. |
maximumBalance | 1000000000000 | 1 to 2305843009213694000 | Largest amount a nation treasury may hold. Deposits that would exceed it are refused. |
Economy ledger
| Key | Default | Allowed | What it does |
|---|---|---|---|
defaultCurrency | "WNC" | text, 3 to 12 characters | Currency code used when none is given, 3 to 12 characters such as "WNC". Existing balances keep the currency they were recorded in. |
decimals | 0 | 0 to 8 | How 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. |
allowPlayerPayments | true | true or false | Whether 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
| Key | Default | Allowed | What it does |
|---|---|---|---|
currency | "WNC" | text, 3 to 12 characters | Ledger 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. |
maximumAmount | 1000000 | 1 to 1000000000000 | Most one deposit or withdrawal may move. |
minimumWithdrawRankLevel | 2 | 0 to 100 | Minimum 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. |
depositsEnabled | true | true or false | Whether members may move money from their wallet into the nation treasury. |
withdrawalsEnabled | true | true or false | Whether 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 characters | Where 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 characters | Where 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 characters | Ledger 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
| Key | Default | Allowed | What it does |
|---|---|---|---|
payForOwnMemberKills | false | true or false | Whether 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. |
minimumAmount | 10 | 1 to 1000000000 | Smallest amount a bounty may be placed for, in the nation treasury's currency. |
minimumRankLevel | 1 | 0 to 100 | Minimum nation rank allowed: 0 = member, 1 = officer, 2 = leader. Applies to placing and cancelling bounties. |
Approvals
| Key | Default | Allowed | What it does |
|---|---|---|---|
maxPendingPerRequester | 5 | 1 to 100 | Approval requests one player may have waiting at the same time. Further requests are refused until older ones are answered or expire. |
maxPending | 500 | 1 to 5000 | Approval requests that may wait across the whole server at the same time. |
requestTtlMinutes | 1440 | 1 to 10080 | Minutes an unanswered approval request stays open before it expires on its own. |
approvedTtlMinutes | 1440 | 1 to 10080 | Minutes an approved request stays usable. After this the requester must ask again. |
denyCooldownMinutes | 10 | 0 to 1440 | Minutes a requester must wait before asking again after a denial. 0 disables the wait. |
retentionDays | 7 | 1 to 90 | Days that answered and expired requests are kept in the history before they are deleted. |
confirmationTtlSeconds | 30 | 5 to 300 | Seconds a player has to repeat a dangerous command to confirm it. After this the confirmation is forgotten. |
Account links
| Key | Default | Allowed | What it does |
|---|---|---|---|
codeMinutes | 10 | 1 to 1440 | How many minutes a link code from /wn link stays valid before it expires. Each code works once. |
maxFailures | 5 | 1 to 100 | Wrong link codes one account may enter before it is locked out. Each full lock period without a wrong code forgives one, so slow guessing is throttled too. Protects against guessing. |
lockMinutes | 15 | 1 to 10080 | How many minutes an account stays locked after reaching the failure limit. |
discordLinkUrlBase | "" | text, 0 to 200 characters | Web address the Discord link code is appended to when Discord sign-in is used, for example "https://example.com/link". Leave empty to hand out plain codes. Set this to the address your WN Discord OAuth page is served from. |
Progression
| Key | Default | Allowed | What it does |
|---|---|---|---|
levelDivisor | 100 | 1 to 1000000 | Experience 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. |
levelExponent | 0.5 | 0.25 to 1 | How 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
| Key | Default | Allowed | What it does |
|---|---|---|---|
cacheSeconds | 2 | 0 to 60 | Seconds 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. |
denialLogSize | 25 | 0 to 500 | How many recent protection denials are kept for /wnadmin diagnostics. 0 keeps none. |
failClosed | true | true or false | What happens when the claims provider cannot answer. On denies the action (safe); off allows it. |
dryRun | false | true or false | When 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 characters | What 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 characters | Which 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. |
blockBreak | true | true or false | Protect claimed land from block breaking by players who lack access. |
blockInteract | true | true or false | Protect claimed land from use of doors, levers, buttons and containers by players who lack access. |
blockPlace | true | true or false | Protect claimed land from block placing by players who lack access. |
entityAttack | true | true or false | Protect entities on claimed land from attacks by players who lack access. |
entityInteract | true | true or false | Protect entities on claimed land from interaction (trading, riding, name tags) by players who lack access. |
fluidPlace | true | true or false | Stop buckets and fluid flow from crossing into claimed land from outside. |
pistonMove | true | true or false | Stop pistons from pushing or pulling blocks across a claim border. |
growthSpread | true | true or false | Stop 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. |
itemTransport | true | true or false | Stop 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. |
dispenserAct | true | true or false | Stop 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). |
mobGrief | true | true or false | Cancel 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 characters | Comma 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. |
projectileHit | true | true or false | Cancel 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. |
containerOpen | true | true or false | Cancel 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. |
commands | true | true or false | Judge 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 characters | What 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). |
explosion | true | true or false | Stop explosions from damaging blocks in claimed land. Warring nations' breach rules can still allow damage during a war. |
Breach
| Key | Default | Allowed | What it does |
|---|---|---|---|
breachEnabled | true | true or false | Master switch for breaching. Off keeps a defender's land fully protected even during a war. |
breachBreak | true | true or false | Whether attackers may break blocks on enemy land during a war. |
breachPlace | true | true or false | Whether attackers may place blocks on enemy land during a war. |
breachInteract | false | true or false | Whether attackers may use doors, buttons, levers and similar blocks on enemy land during a war. |
breachContainers | false | true or false | Whether 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 characters | Comma separated block names counted as containers for breachContainers, without the "minecraft:" prefix. |
Rollback
| Key | Default | Allowed | What it does |
|---|---|---|---|
maxEntriesPerWar | 20000 | 1 to 500000 | Most block changes remembered per war. When the limit is reached the oldest are forgotten and cannot be restored. |
maxWars | 8 | 1 to 64 | Wars whose block changes are remembered at once. |
retentionHours | 168 | 1 to 8760 | Hours a finished war's block changes are kept waiting for restoration before they are discarded. |
restoreDelaySeconds | 30 | 0 to 86400 | Seconds to wait after a war ends before restoration begins. |
blocksPerSecond | 200 | 1 to 20000 | Blocks restored per second. Lower values reduce server load. |
maxBlocksPerStep | 50 | 1 to 5000 | Most blocks restored in a single server tick. |
retrySeconds | 30 | 1 to 3600 | Seconds to wait before retrying chunks that were not loaded when restoration reached them. |
restoreCapturedLand | false | true or false | Whether land that changed owner during the war is also restored. Off leaves captured land as the attackers left it. |
restoreUnverified | false | true or false | Whether 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. |
costPerBlock | 0 | 0 to 1000000 | Treasury cost per restored block, charged to the nation named in cost_recipient. 0 makes restoration free. |
costRecipient | "" | text, 0 to 128 characters | The 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 characters | Where 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
| Key | Default | Allowed | What it does |
|---|---|---|---|
landChunks | 3 | 0 to 1000 | Chunks of land the winner takes from the loser when a war ends in victory. 0 transfers no land. |
treasuryPercent | 10 | 0 to 100 | Percent of the loser's treasury the winner receives at the end of a war. |
includeSurrender | true | true or false | Whether the winner also receives spoils when the loser surrenders. Off gives spoils only for wars played to the end. |
War rules
| Key | Default | Allowed | What it does |
|---|---|---|---|
objectivePoints | "" | text, 0 to 1024 characters | Named 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
| Key | Default | Allowed | What it does |
|---|---|---|---|
afkAfterSeconds | 60 | 0 to 3600 | Seconds without movement before a player counts as away. Away players do not count toward occupation scoring. 0 disables the check. |
resumeSamples | 2 | 1 to 10 | Consecutive 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. |
excludeCreative | false | true or false | Whether players in creative mode are ignored when measuring presence. |
excludedDimensions | "" | text, 0 to 1024 characters | Comma separated dimension names where presence is not counted, for example "minecraft:the_end". Empty counts every dimension. |
Progression awards
| Key | Default | Allowed | What it does |
|---|---|---|---|
foundingXp | 50 | 0 to 1000000 | Nation experience awarded when a nation is founded. |
memberJoinXp | 10 | 0 to 1000000 | Nation experience awarded each time a member joins. |
claimXp | 5 | 0 to 1000000 | Nation experience awarded for each chunk claimed. |
warWinXp | 200 | 0 to 1000000 | Nation experience awarded to the winner of a war. |
warLossXp | 25 | 0 to 1000000 | Nation experience awarded to the loser of a war. Usually lower than a win. |
Map layers
| Key | Default | Allowed | What it does |
|---|---|---|---|
maxChunks | 20000 | 100 to 100000 | Most 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 characters | Colour 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 characters | Colour 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 characters | Colour 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.