Skip to main content
Dan's Plugins Community
All plugins
Medieval Factions icon

Medieval Factions

0

50 servers
Latest: v11.2.0
28,409 downloads on GitHub
Tested on Minecraft 1.21
4.7 · 45 reviews on SpigotMC
63,788 downloads on SpigotMC

First released June 5, 2020 · Last updated November 22, 2026

Downloads from this site

698 total

23 latest (v11.2.0)

Allows players to organize themselves into feudal, diplomatic, lawful groups akin to nations.

factions
medieval
DownloadUser guideSourceSpigotMC
A recreated chat panel: every line is the plugin’s real output, captured from commands a bot player ran on a test server.
Medieval Factions claims over a fresh vanilla 26.3 world, using example factions (no real server’s data). Exported by Minecraft-USD-Exporter and rendered headless by Strata 0.6.0, the sun moving from sunrise to sunset.
Example factions as islands, sized by member count: bridges are alliances, fleets across a red line are wars, and chained islets are vassals. A made-up world (no real server’s data) in the shape Medieval Factions reports factions to this site, rendered headless by Strata 0.6.0.

Versions

All releases on GitHub
Development build
Pre-release
November 22, 2026· 31 downloads

Automated build of main at 67f2291e4e8ecb8ed7b4fa7c11690e0b2bc9e072.

This is not a release. It is unreleased, unreviewed code that has not been through any release check, and a broken build can stop a server from starting. Do not run it on a server you care about without a backup.

Install it with Dan's Plugin Manager:

/dpm get medievalfactions --experimental

Return to published releases with /dpm get medievalfactions --stable.

medieval-factions-11.2.1-SNAPSHOT-all.jar (17.6 MB)

11.2.0

This release adds one opt-in option and one startup warning. On a server running v11.1.1, nothing changes for factions, commands, permissions or stored data unless the new option is turned on.

Added

  • factions.clearHomeOnChunkLoss (default false): when on, a faction's home is removed once the faction stops holding the chunk it is in. That covers the chunk being unclaimed (/f unclaim, by radius, autounclaim or /f unclaimall) and the chunk being claimed by another faction. Members are told, and offline members get a notification. Disbanding is not affected. While it is off, homes behave exactly as before. (#2232)
  • EssentialsX Spawn warning: with factions.respawnAtFactionHome on, a warning is logged at startup when EssentialsX Spawn is installed with a respawn-listener-priority that makes it override the faction home. That is any value except none or lowest, and its default is high. The warning names the setting to change. Nothing is written to the EssentialsX config. (#2231)

Upgrade notes

  • Replace the jar and restart. There is no migration and no storage change.
  • If you use factions.respawnAtFactionHome with EssentialsX Spawn and players respawn at the EssentialsX spawn, set respawn-listener-priority: none (or lowest) in plugins/Essentials/config.yml. See the FAQ.
  • The German, French and Portuguese messages for a cleared home are new translations. Corrections are welcome.

Version

v11.1.1 → 11.2.0: MINOR, because a config option and a startup warning were added. There is no breaking change.

Verification

This release was cut by hand, outside the fleet's release automation, so the automated boot and save-compatibility gates were not run. Unit tests cover both changes; the full suite of 1,618 tests passed. CI (build, docker-build) and the behaviour gate passed on #2232.

Tried in game (Spigot 1.21.1, local server, scripted player, after publication). Each check was run against v11.1.0 first, as a control, then against this code:

  • Respawn at the faction home with WorldGuard 7.0.9: v11.1.0 showed the spawn region's greeting on 3 of 3 respawns; this code showed it on 0 of 3, and the player was at the faction home each time. WorldGuard 7.0.10 and later read the respawn location at MONITOR priority, so servers on those versions were not affected by #2227.
  • EssentialsX Spawn 2.21.0: with respawn-listener-priority: high, players respawned at the EssentialsX spawn, and this code logged the warning. With none, no warning was logged and players respawned at the faction home. On a server's very first start, the EssentialsX config does not exist yet, so the warning appears once with (not set).
  • factions.clearHomeOnChunkLoss: while off, the home was kept through an unclaim, /f unclaimall and a takeover. While on, the home was removed, and members were told, after unclaiming the home chunk, /f unclaimall, and another faction claiming the chunk. Unclaiming a different chunk kept the home.

drafted by Claude on behalf of Daniel Stephenson

11.1.1

A patch release with one fix. Nothing changes about factions, commands, permissions, config or stored data for a server on v11.1.0.

Fixed

  • With factions.respawnAtFactionHome on, a player who respawns at their faction home no longer briefly counts as being at world spawn. Before this fix, WorldGuard showed the spawn region's entry or greeting message to that player. The respawn listener now runs at LOW priority, so the faction home is already the respawn location when NORMAL-priority listeners such as WorldGuard read it. (#2227, #2228)

Upgrade notes

  • Replace the jar and restart. No config or data changes are needed.

Version

v11.1.0 → 11.1.1: PATCH, a bug fix with no API, data or config change.

Verification

This release was cut by hand and did not go through the fleet's release automation, so the automated boot and save-compatibility gates were not run. Since v11.1.0, the code change is one annotation (the listener's event priority). It is covered by unit tests, including a regression test that sends the event through Bukkit's own handler list with a NORMAL listener registered first. The build, docker-build and behaviour checks passed on #2228. The fix has not been tried in game with WorldGuard installed.


drafted by Claude on behalf of Daniel Stephenson

11.1.0

This release changes nothing about factions, commands, permissions or stored data for a server on v11.0.0. It makes the usage-reporting opt-out more reliable. Once an operator turns reporting off, it stays off. A setting that does not clearly mean "on" now counts as off.

Changes

Usage reporting

  • Turning off usage reporting now sticks. Saving the plugin config from a command, the API server or the legacy migrator no longer overwrites usage-reporting.enabled: false on disk, including after a hand edit made while the server is running. (#2220)
  • If config.yml contains a YAML error, the plugin no longer overwrites it with the defaults. It logs an error, runs on the defaults until restart, and keeps usage reporting off. (#2220)
  • usage-reporting.enabled now counts as on only for true, on or yes (a bare 1 is read as a number and turns it off). Anything else turns reporting off, including a quoted "false", a typo or an empty value. (#2221)
  • The same rule now covers the server-wide plugins/trace/config.yml and the TRACE_USAGE_REPORTING and DO_NOT_TRACK environment variables. If plugins/trace/config.yml exists but cannot be read, reporting stays off. (#2221)

Upgrade notes

  • If you want usage reporting on, set usage-reporting.enabled to true, on or yes (a bare 1 is read as a number and turns it off). Any other value now turns it off.
  • If the server log says config.yml could not be read, so it was not overwritten, fix the YAML error in config.yml and restart. Until you do, the plugin uses the default settings.

Version

v11.0.0 → 11.1.0 — MINOR. Mechanical floor from comparing the two jars: MINOR. Judgment: The only behaviour change is in usage reporting: the opt-out switches now fail closed, and config.yml is no longer overwritten when it cannot be parsed or when it already says enabled: false. Some values that used to leave reporting on now turn it off, such as a quoted "false", a typo or TRACE_USAGE_REPORTING=disabled. That makes opt-outs stronger and breaks no command, data format, permission or gameplay behaviour, so it is new behaviour, not a break, and the minor floor stays. UsageReportingSetting.kt (+136) did not fit in the diff and is unknown. Its call sites, its tests and the titles of #2220 and #2221 suggest it only reads the usage-reporting switch and guards saveConfig, but that is not verified.

  • minor: default config value changed: version 11.0.0 → 11.0.1-SNAPSHOT
  • minor: public class added: com.dansplugins.factionsystem.trace.UsageReportingSetting
  • minor: com.dansplugins.factionsystem.MedievalFactions: added public void saveConfig();
  • minor: com.dansplugins.factionsystem.trace.TraceClient: added public static boolean allowsReporting(java.lang.Object);
  • minor: storage path changed: src/main/kotlin/com/dansplugins/factionsystem/MedievalFactions.kt

Verification

Verified on a real Spigot server before publication; this release carries the exact jar that was verified.

  • boot gate run: booted twice on a fresh Spigot server running Minecraft 1.19.4 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 1.21.11 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 26.2 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 26.3 (11 assertions passed).
  • save-compatibility gate run on the h2 backend: data written by v11.0.0 was loaded by this release across 5 restart cycles with nothing lost (34 assertions passed).
  • save-compatibility gate run on the json backend: data written by v11.0.0 was loaded by this release across 5 restart cycles with nothing lost (36 assertions passed).
  • dependents gate run: Currencies v3.11.0, Fiefs v1.2.1, Democracy v0.4.7, MF_Bluemap v1.1.7 — each one's current stable release — enabled against this release across two boots (24 assertions passed).

Install with Dan's Plugin Manager: /dpm get <plugin>. How stable releases are made: Release channels.


drafted by Claude on behalf of Daniel Stephenson

Corrected 2026-11-22: an earlier version of these notes said a bare 1 keeps usage-reporting.enabled on. It is read as a number and turns reporting off.

11.0.0

For a server running v10.2.0, this is a large feature release, and almost all of it is opt-in: every new config option ships switched off or set to the current behaviour. On first start, the plugin applies additive database migrations that add new tables and columns for rivals, law sections, role-based lock access, locked entities, locked areas and fixed power. On JSON storage it writes new files (rivals.json, locked_entities.json, locked_areas.json, truces.yml) and existing data loads unchanged. Some changes do affect servers without any config edits. On JSON storage, power decay now applies to offline players rather than online players. Owner roles automatically receive permissions that add-ons register. Several new player commands are granted to everyone by default. Add-ons that implement MfPlayerRepository must be updated.

Changes

Claims

  • /f claim square and /f claim rectangle claim land in those shapes (#2181).
  • /f claim show temporarily outlines nearby claim borders, visible only to you (#2185).
  • Opt-in claim restrictions: chunks that can never be claimed (factions.blockedClaimChunks), a maximum distance from existing claims (factions.maxClaimDistance), and no conquering a chunk while its owner's territory surrounds it (factions.preventConqueringSurroundedChunks) (#2186).
  • The power cost of each claimed chunk is configurable, with per-world overrides (factions.claimPowerCost, factions.claimPowerCostByWorld) (#2178).
  • Optional WorldGuard integration refuses new claims that overlap regions, with exempt regions and flags (worldGuard.*) (#2195).
  • /f claim fill now uses the same overclaim comparison as /f claim (#2177).

Power

  • /power setfixed and /power clearfixed pin a player's power so it never changes (permission mf.power.fixed, op by default) (#2209).
  • players.leaderMaxPower sets a separate maximum power for faction leaders (#2207).
  • Configurable power update interval, plus switches to turn off power gain or decay over time (players.powerUpdateIntervalMinutes, players.disablePowerGainOverTime, players.disablePowerDecayOverTime) (#2171).
  • Optional power sidebar scoreboard (powerScoreboard.*) (#2174).
  • Optional disbanding of a faction when its leader dies at zero power (factions.leaderZeroPowerDisbandsFaction) (#2191).
  • Fixed: on JSON storage, offline players now lose power over time as intended; previously online players lost power instead (#2210).

Diplomacy

  • Faction rivals: /f rival and /f unrival, with an optional minimum rivalry duration (factions.minimumRivalryHours) (#2192).
  • Optional truce after making peace, which blocks new war declarations for a set time (factions.truceDurationMinutes) (#2172).
  • New parent command /f vassalage groups the vassalage commands, and its rescind subcommand withdraws a pending offer (#2208).
  • New admin force permissions for setting a faction's description and home, and for forcing war, peace, alliances, breaking alliances, vassalization and independence between two factions (mf.force.* subnodes, op by default) (#2190).

Faction homes

  • Optional cooldown between /f home teleports (factions.factionHomeTeleportCooldown) (#2173).
  • Optional respawn at the faction home for players without a bed or respawn anchor (factions.respawnAtFactionHome) (#2173).

Locks and protection

  • Locked areas: /f area defines named regions inside your territory where only the players and roles you list can build or use blocks (#2202).
  • Armour stands and item frames can now be locked (#2201).
  • Faction roles can be added as lock accessors (/accessors add ... role <role>) (#2198).
  • Optional hopper transfers between two locks owned by the same player (factions.allowHopperTransfersBetweenSameOwnerLocks) (#2167).
  • New allowMobGriefing faction flag, and server-forced flags that factions cannot change (factions.forcedFlags) (#2175).
  • Options to allow building everywhere and to stop nether portals generating in claims (factions.allowBuildingEverywhere, factions.preventPortalGenerationInClaims) (#2179).
  • Wartime block lists now accept block and item tags (#2176).
  • Optional Slimefun protection module (slimefun.protection.enabled) (#2196).

Roles and laws

  • /f role move reorders roles (#2168).
  • /f role setprefix sets a role prefix shown for its members (#2204).
  • Owner roles automatically get permissions that add-ons register (#2206).
  • Law sections with /f law section, and the law list is now paginated (#2203, #2180).

Chat and language

  • chat.prefixWorlds limits the faction chat prefix to the listed worlds (#2184).
  • Boolean flag values are accepted and shown in the server's language (#2183).
  • Fixed corrupted German umlauts and broken Portuguese and German language entries. Language files that earlier builds damaged on disk now fall back to the intact bundled text (#2194, #2188).

Reliability and integrations

  • A faction change that hits a version conflict is now retried instead of failing (#2187).
  • An incompatible RPKit version now skips the RPKit Locks integration instead of stopping the plugin from enabling (#2170).
  • Optional HikariCP connection pool settings are read from hikaricp.properties (#2182).
  • Player-controlled text in the Dynmap faction popup is now escaped (#2161).
  • Fixed: a leaving member's locks are now deleted after the faction is saved, and neutral factions now start up correctly (#2152).

Upgrade notes

  • Back up your database or JSON storage folder before upgrading. The schema migrations run automatically on first start and are not reversed if you downgrade to v10.2.0.
  • These new permissions are granted to all players by default: mf.rival, mf.area, mf.law.section, mf.role.move, mf.role.setprefix, mf.claim.square, mf.claim.rectangle, mf.claim.show and mf.showclaim. Restrict them in your permissions plugin if you do not want players to use these commands.
  • On JSON storage, power changes now work as intended: offline players decay and online players no longer do. Expect power totals to shift after upgrading.
  • Add-ons that implement MfPlayerRepository must be updated for the new clampPowerToMax method and the changed signatures of the power-update methods.

Version

v10.2.0 → 11.0.0 — MAJOR. Mechanical floor from comparing the two jars: MAJOR. Judgment: The mechanical floor is major, and that is kept. It rests on the removal of BlockBreakListener$onBlockBreak$2$WhenMappings, a class the compiler generates rather than real API, but the floor cannot be lowered and there are other incompatible changes too. MfPlayerRepository gains the abstract method clampPowerToMax and changes the signatures of its power-update methods, which breaks third-party implementations. On JSON storage, power decay now applies to offline players instead of online players (#2210), which changes behaviour on running servers. Owner roles now automatically receive permissions that add-ons register (#2206). The new database migrations (V10–V15) and JSON fields only add data and are migrated, so they do not raise the level by themselves. Many command, listener, service and language files were cut from the diff and are UNKNOWN, so they cannot be ruled out as further breaking changes.

  • minor: permission added: mf.area
  • minor: permission added: mf.claim.rectangle
  • minor: permission added: mf.claim.show
  • minor: permission added: mf.claim.square
  • minor: permission added: mf.force.ally
  • minor: permission added: mf.force.breakalliance
  • minor: permission added: mf.force.declarewar
  • minor: permission added: mf.force.desc
  • minor: permission added: mf.force.grantindependence
  • minor: permission added: mf.force.makepeace
  • minor: permission added: mf.force.sethome
  • minor: permission added: mf.force.vassalize
  • minor: permission added: mf.law.section
  • minor: permission added: mf.power.fixed
  • minor: permission added: mf.rival
  • minor: permission added: mf.role.move
  • minor: permission added: mf.role.setprefix
  • minor: permission added: mf.showclaim
  • minor: default config key added: chat.prefixWorlds
  • minor: default config key added: factions.allowBuildingEverywhere
  • minor: default config key added: factions.allowHopperTransfersBetweenSameOwnerLocks
  • minor: default config key added: factions.blockedClaimChunks
  • minor: default config key added: factions.claimPowerCost
  • minor: default config key added: factions.claimPowerCostByWorld
  • minor: default config key added: factions.defaults.flags.allowMobGriefing
  • minor: default config key added: factions.factionHomeTeleportCooldown
  • minor: default config key added: factions.forcedFlags
  • minor: default config key added: factions.leaderZeroPowerDisbandsFaction
  • minor: default config key added: factions.maxClaimDistance
  • minor: default config key added: factions.minimumRivalryHours

Verification

Verified on a real Spigot server before publication; this release carries the exact jar that was verified.

  • boot gate run: booted twice on a fresh Spigot server running Minecraft 1.19.4 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 1.21.11 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 26.2 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 26.3 (11 assertions passed).
  • save-compatibility gate run on the h2 backend: data written by v10.2.0 was loaded by this release across 5 restart cycles with nothing lost (34 assertions passed).
  • save-compatibility gate run on the json backend: data written by v10.2.0 was loaded by this release across 5 restart cycles with nothing lost (36 assertions passed).
  • dependents gate run: Currencies v3.10.0, Fiefs v1.2.1, Democracy v0.4.6, MF_Bluemap v1.1.7 — each one's current stable release — enabled against this release across two boots (24 assertions passed).

Install with Dan's Plugin Manager: /dpm get <plugin>. How stable releases are made: Release channels.


drafted by Claude on behalf of Daniel Stephenson

10.2.0

This release makes no functional changes for a server running v10.1.0. Commands, permissions, configuration and stored faction data all behave exactly as before, so it is safe to drop in.

Changes

  • Reliability: Added automated test coverage for faction loading, saving, disbanding, lookups and application handling. This guards against regressions in future releases; nothing changes in-game. (#2149)

Version

v10.1.0 → 10.2.0 — MINOR. Mechanical floor from comparing the two jars: MINOR. Judgment: The only changes are a new unit-test suite for MfFactionService (#2149) and the version bump in build.gradle (#2153); no plugin behaviour, data format, commands, config keys or permissions change. On its own this would be a patch, but the mechanical floor of minor cannot be lowered, so the level stays at minor. The mechanical evidence is just the plugin version string changing, which is not a real config-semantics change and does not justify going higher.

  • minor: default config value changed: version 10.1.0 → 10.1.1

Verification

Verified on a real Spigot server before publication; this release carries the exact jar that was verified.

  • boot gate run: booted twice on a fresh Spigot server running Minecraft 1.19.4 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 1.21.11 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 26.2 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 26.3 (11 assertions passed).
  • save-compatibility gate run on the h2 backend: data written by v10.1.0 was loaded by this release across 5 restart cycles with nothing lost (34 assertions passed).
  • save-compatibility gate run on the json backend: data written by v10.1.0 was loaded by this release across 5 restart cycles with nothing lost (36 assertions passed).
  • dependents gate run: Currencies v3.9.0, Fiefs v1.1.3, Democracy v0.4.5, MF_Bluemap v1.1.6 — each one's current stable release — enabled against this release across two boots (24 assertions passed).

Install with Dan's Plugin Manager: /dpm get <plugin>. How stable releases are made: Release channels.


drafted by Claude on behalf of Daniel Stephenson

10.1.0

This release fixes two bugs for servers running v10.0.0. On JSON storage, changes to a faction's roles now apply to its members straight away instead of after a restart. Gate creation now refuses gates more than one block thick, which were previously allowed at two blocks thick. The data format is unchanged, and the gate check only applies when a gate is created.

Changes

Factions and roles

  • On JSON storage, permission changes and role renames now reach members as soon as the faction is saved. Previously they did not take effect until the faction was next read from the file at startup. This also covers permissions granted to a new faction's roles by add-on plugins when the faction is created. A member whose role is no longer among the faction's roles stays in the faction with that role. (#2146)

Gates

  • Gate creation now refuses any selection more than one block thick, including 2×2 columns and two-block-thick slabs, with the existing "must be a flat plane" message. One-block-thick gates are still accepted. (#2140)

Version

v10.0.0 → 10.1.0 — MINOR. Mechanical floor from comparing the two jars: MINOR. Judgment: Session: Portcullis. Keeping the minor floor: #2146 only corrects the in-memory faction returned after a JSON save and leaves the on-disk format unchanged, so it needs no migration and breaks nothing. #2140 is a stricter check, but only at gate creation, and it enforces the one-block-thick rule that the existing validation was meant to apply, with existing gates untouched by this diff. Players can no longer create two-block-thick gates, which is a real behaviour change but not an incompatible break for an existing server, so it does not justify major.

  • minor: default config value changed: version 10.0.0 → 10.1.0
  • minor: com.dansplugins.factionsystem.storage.json.JsonMfFactionRepository: added public static final com.dansplugins.factionsystem.faction.MfFaction access$withMembersInSavedRoles(com.dansplugins.factionsystem.storage.json.JsonMfFactionRepository, com.dansplugins.factionsystem.faction.MfFaction);
  • minor: storage path changed: src/main/kotlin/com/dansplugins/factionsystem/storage/json/JsonMfFactionRepository.kt

Verification

Verified on a real Spigot server before publication; this release carries the exact jar that was verified.

  • boot gate run: booted twice on a fresh Spigot server running Minecraft 1.19.4 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 1.21.11 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 26.2 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 26.3 (11 assertions passed).
  • save-compatibility gate run on the h2 backend: data written by v10.0.0 was loaded by this release across 5 restart cycles with nothing lost (34 assertions passed).
  • save-compatibility gate run on the json backend: data written by v10.0.0 was loaded by this release across 5 restart cycles with nothing lost (36 assertions passed).
  • dependents gate run: Currencies v3.8.0, Fiefs v1.1.3, Democracy v0.4.4, MF_Bluemap v1.1.5 — each one's current stable release — enabled against this release across two boots (24 assertions passed).

Install with Dan's Plugin Manager: /dpm get <plugin>. How stable releases are made: Release channels.


drafted by Claude on behalf of Daniel Stephenson

10.0.0

This release fixes several problems that a server running v9.0.0 would have seen. Law numbering now behaves the same with JSON and database storage, and deleting a law closes the gap it leaves. Players in a duel can no longer be hit by, or hit, outsiders with thrown potions. Gate height limits now count blocks correctly. Usage reporting sends far less traffic. It is a major release because plugins or scripts that look up JSON-stored laws by position, or rely on a null lookup returning the first law, will see different results.

Changes

Laws

  • With JSON storage, laws are now looked up by their law number rather than their position in the faction's list, so the numbers players see in law commands select the matching law. A lookup with no number no longer returns the faction's first law. (#2136)
  • With JSON storage, a new law with no number is numbered after the faction's existing laws. (#2136)
  • Deleting a law now renumbers the laws after it down by one, so there are no gaps. This now works with both JSON and database storage; with database storage the renumbering was previously never applied. (#2136)

Duels

  • Splash and lingering potions now respect duel isolation. A duelist's potions no longer affect players outside the duel, and players in someone else's duel are unaffected by outsiders' potions, whatever the faction PvP settings. (#2138)

Gates

  • gates.minHeight is now compared against the gate's height in blocks. Previously a gate had to be one block taller than the configured minimum, so with the default of 3 a three-block-tall gate was refused. (#2111)

Usage reporting

  • Command usage is now reported only for commands run by players. Commands from the console, command blocks or other plugins are not reported. (#2139)
  • The bundled trace client is updated to 0.7.0. Repeats of the same event within a minute are combined into a single report carrying a count, so a command run in a loop cannot flood the trace server. (#2137)

Upgrade notes

  • If you use JSON storage, run your factions' law list after upgrading to confirm the laws and their numbers are as expected. Lookups and deletions now go by law number.
  • If you set gates.minHeight to match the old, stricter behaviour, lower it by one. Gates exactly gates.minHeight blocks tall are now accepted.

Version

v9.0.0 → 10.0.0 — MAJOR. Mechanical floor from comparing the two jars: MAJOR. Judgment: The major floor stands, and the diff confirms it. JsonMfLawRepository.getLaw now takes a 1-based law number instead of a 0-based position, and returns null instead of the first law when no number is given. That is an incompatible change to a public API method and to how laws in JSON storage are addressed. gates.minHeight now counts blocks, so a gate one block shorter than before passes. Duel isolation now also applies to splash and lingering potions, which changes PvP outcomes on existing servers.

  • minor: default config value changed: version 9.0.0 → 9.0.1-SNAPSHOT
  • major: public class removed: com.dansplugins.factionsystem.storage.json.JsonMfLawRepository$getLaw
  • minor: com.dansplugins.factionsystem.trace.TraceClient: added public static final int MAX_COALESCED_EVENTS;
  • minor: com.dansplugins.factionsystem.trace.TraceClient: added public static final java.lang.String COALESCED_TAG;
  • minor: com.dansplugins.factionsystem.trace.TraceClient: added public static final long COALESCE_WINDOW_MS;
  • minor: storage path changed: src/main/kotlin/com/dansplugins/factionsystem/MedievalFactions.kt
  • minor: storage path changed: src/main/kotlin/com/dansplugins/factionsystem/law/JooqMfLawRepository.kt
  • minor: storage path changed: src/main/kotlin/com/dansplugins/factionsystem/storage/json/JsonMfLawRepository.kt

Verification

Verified on a real Spigot server before publication; this release carries the exact jar that was verified.

  • boot gate run: booted twice on a fresh Spigot server running Minecraft 1.19.4 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 1.21.11 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 26.2 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 26.3 (11 assertions passed).
  • save-compatibility gate run on the h2 backend: data written by v9.0.0 was loaded by this release across 5 restart cycles with nothing lost (34 assertions passed).
  • save-compatibility gate run on the json backend: data written by v9.0.0 was loaded by this release across 5 restart cycles with nothing lost (36 assertions passed).
  • dependents gate run: Currencies v3.6.0, Fiefs v1.1.2, Democracy v0.4.3, MF_Bluemap v1.1.4 — each one's current stable release — enabled against this release across two boots (24 assertions passed).

Install with Dan's Plugin Manager: /dpm get <plugin>. How stable releases are made: Release channels.


drafted by Claude on behalf of Daniel Stephenson

9.0.0

For a server running v8.0.0, this release mainly fixes /f law move. Laws on JSON storage are now renumbered correctly when one is moved, and the command now refuses bad input with a clear message instead of failing. It also changes who may toggle autounclaim in existing factions. Any role that may toggle autoclaim can now toggle autounclaim too, unless that role already has its own autounclaim setting. Saved data is not rewritten, and no command or config changes are needed.

Changes

Laws

  • On JSON storage, moving a law now shifts the laws in between up or down by one, so two laws no longer end up with the same number. Laws in other factions are not touched. Database storage already worked this way. (#2132)
  • /f law move now refuses a new number that is not a whole number from 1 to the faction's law count, and the message shows the allowed range. (#2132)
  • /f law move now shows a proper message when the law belongs to another faction. (#2132)
  • Added the new law-move messages to all bundled languages. The German and French files use the English text for now. (#2132)

Faction permissions

  • A role with no saved setting for toggling autounclaim now takes its autoclaim setting, and the same applies to granting autounclaim to other roles. Existing Owners can therefore use and grant autounclaim without their roles being changed. A role's own autounclaim setting still takes priority.
  • New factions' Owner role now has autounclaim enabled by default.

Upgrade notes

  • If a faction set its default permissions so that roles cannot toggle autounclaim, that default no longer applies to roles that are allowed to toggle autoclaim. To keep autounclaim restricted for those roles, give them their own autounclaim setting through the role permission commands.
  • Laws on JSON storage that already share a number from earlier moves are not renumbered automatically. Moving the affected laws again in v9.0.0 puts them back in order.

Version

v8.0.0 → 9.0.0 — MAJOR. Mechanical floor from comparing the two jars: MINOR. Judgment: The floor is minor and I'm raising it to major. The diff changes how the faction permission TOGGLE_AUTOUNCLAIM, and the right to grant it, is decided for roles that have no saved entry for it. Those roles now take their TOGGLE_AUTOCLAIM value, and that value overrides the faction's default permissions, so on an existing server the permission's default effect changes and the mechanical check can't see that. The other changes are fixes and would only justify minor: law moves on JSON storage now shift the laws in between, and /f law move now checks its target number and faction.

  • minor: default config value changed: version 8.0.0 → 8.0.1-SNAPSHOT
  • minor: storage path changed: src/main/kotlin/com/dansplugins/factionsystem/storage/json/JsonMfLawRepository.kt

Verification

Verified on a real Spigot server before publication; this release carries the exact jar that was verified.

  • boot gate run: booted twice on a fresh Spigot server running Minecraft 1.19.4 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 1.21.11 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 26.2 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 26.3 (11 assertions passed).
  • save-compatibility gate run on the h2 backend: data written by v8.0.0 was loaded by this release across 5 restart cycles with nothing lost (34 assertions passed).
  • save-compatibility gate run on the json backend: data written by v8.0.0 was loaded by this release across 5 restart cycles with nothing lost (36 assertions passed).
  • dependents gate run: Currencies v3.3.0, Fiefs v1.0.1, Democracy v0.4.0, MF_Bluemap v1.1.2 — each one's current stable release — enabled against this release across two boots (24 assertions passed).

Install with Dan's Plugin Manager: /dpm get <plugin>. How stable releases are made: Release channels.


drafted by Claude on behalf of Daniel Stephenson

8.0.0

For a server on v7.0.0 this is a major release. Role-management permissions are now denied by default, and existing factions get the new default too, so members who could create, delete, rename or assign roles may lose that ability until a faction owner grants it again. The release also adds /f unclaim auto, which comes with an automatic additive database migration (V9). It closes several gaps in claim protection and PvP, fixes stale-save detection on MariaDB/MySQL, and adds an update check that is on by default. No data needs converting by hand.

Changes

Roles and permissions

  • Role-management faction permissions now default to denied (#2109), and this default is applied to existing factions as well (#2117).
  • New mf.force.role permission (op, included in mf.force.*) lets admins manage another faction's roles with /f role <faction> ... (#2077).
  • /f admin setleader can now promote an existing member, and it recreates a missing Owner role from the default template (#2077, #2068).
  • mf.force.claim and mf.force.unclaim are now honoured. mf.force.kick and mf.force.rename now bypass the target faction's role check (#2066).
  • The mf.law.* permission nodes are now declared (default true), so law commands work for non-ops (#2102).

Claims and land

  • New /f unclaim auto toggle (permissions mf.unclaim.auto / mf.autounclaim), stored through an additive database migration (#1918).
  • /f unclaimall now shows how many chunks will be released and asks for confirmation. /f unclaim now reports how many chunks it removed (#2068).
  • /f set name, claim, unclaim and role commands now refuse an unknown target faction with a clear message. The help entries for claim check and help page numbers, and the kick notice, are fixed (#2075).

Protection

  • Fire ignition, bone meal, and entity and hanging placement (armour stands, item frames, paintings and similar) are now protected in claims by their own listeners (#2083).
  • Trees, mushrooms and bone-meal growth no longer spread into foreign claims (#2088).
  • The plugin no longer reports a refusal after the last item in a player's hand is thrown (#2085).

PvP and duels

  • Splash potions now apply the PvP rules to every player they hit (#2114).
  • Attackers are now told why a PvP hit was refused (#2095).
  • When a duel ends, each player's health goes back to what it was at /duel accept (#2086).

Gates

  • Gates can no longer be made from blocks they cannot restore correctly, such as containers, signs, or blocks placed in a non-default orientation (#2065).
  • gates.restrictedBlocks now loads entries grouped in nested lists. Existing gates made of a restricted block are kept and named in a startup warning, never deleted (#2074).

Data and storage

  • Stale saves are now detected on MariaDB/MySQL for every versioned repository, so concurrent edits no longer silently overwrite each other (#2079).
  • Player saves now enforce the optimistic-lock version check (#2069).
  • If the H2 auto-server cannot resolve its host, the plugin now falls back to embedded H2 instead of failing to start (#2073).
  • The legacy MF4 migration now sets power on a player row that already exists, so a re-run migration no longer leaves power unmigrated (#2119).

Operators

  • New /mf addons command (mf.addons, op) and a startup console line that lists the known add-ons that are installed. Both are controlled by addons.suggestions (#2064).
  • New update check: once per startup the plugin asks GitHub for the latest release. If a newer one exists, it says so in the console and tells players with mf.updatenotice (ops by default) when they join. Turn it off with update-check.enabled: false (#2063).
  • Usage-reporting events now carry a random server ID (the server-id line in plugins/trace/config.yml), and the startup notice mentions it (#2067, #2081).
  • Added support for Minecraft 26.3 (#2082).

Upgrade notes

  • Review role permissions after upgrading. In existing factions, non-owner roles lose role-management rights unless they were explicitly granted. Faction owners can grant them again with /f role setpermission.
  • /f unclaimall now needs a confirmation step. Update any scripts or habits that relied on it acting immediately.
  • The database migration to V9 runs automatically on first start. Back up your database before upgrading, as usual.
  • The update check is on by default. To disable it, set update-check.enabled: false in config.yml, or set TRACE_USAGE_REPORTING=off or DO_NOT_TRACK=1 in the environment.
  • Usage reporting now includes a random server ID. To opt out, set usage-reporting.enabled: false.

Version

v7.0.0 → 8.0.0 — MAJOR. Mechanical floor from comparing the two jars: MAJOR. Judgment: The mechanical floor of major stands. The jar diff found removed public role-command methods, and there are also breaks it cannot see: role-management permissions now default to denied (#2109), and #2117 applies that to existing factions, so the default effect of saved faction permissions changes on upgrade. /f unclaimall now asks for confirmation before acting, which changes how an existing command behaves. Several command, listener and service files were truncated from the diff (for example MfFactionUnclaimCommand, MfFactionRoleCommand, MfPlayerService and PlayerInteractListener), so their exact behaviour is unknown, but they can only add to a major, and the Flyway 9.4.0 → 13.9.0 bump (#2087) was not reviewed for database-support changes.

  • minor: permission added: mf.addons
  • minor: permission added: mf.autounclaim
  • minor: permission added: mf.force.role
  • minor: permission added: mf.law.add
  • minor: permission added: mf.law.edit
  • minor: permission added: mf.law.list
  • minor: permission added: mf.law.move
  • minor: permission added: mf.law.remove
  • minor: permission added: mf.unclaim.auto
  • minor: permission added: mf.updatenotice
  • minor: default config key added: addons.suggestions
  • minor: default config key added: update-check.enabled
  • minor: default config value changed: version 7.0.0 → 7.0.1-SNAPSHOT
  • minor: public class added: com.dansplugins.factionsystem.addon.MfAddonDetector
  • minor: public class added: com.dansplugins.factionsystem.addon.MfAddonDetector$Companion
  • minor: public class added: com.dansplugins.factionsystem.addon.MfAddonDetectorKt
  • minor: public class added: com.dansplugins.factionsystem.addon.MfAddonKind
  • minor: public class added: com.dansplugins.factionsystem.addon.MfAddonStatus
  • minor: public class added: com.dansplugins.factionsystem.addon.MfDetectedAddon
  • minor: public class added: com.dansplugins.factionsystem.addon.MfKnownAddon
  • minor: public class added: com.dansplugins.factionsystem.addon.MfKnownAddons
  • minor: public class added: com.dansplugins.factionsystem.command.faction.addons.MfFactionAddonsCommand
  • minor: public class added: com.dansplugins.factionsystem.command.faction.addons.MfFactionAddonsCommand$Companion
  • minor: public class added: com.dansplugins.factionsystem.command.faction.addons.MfFactionAddonsCommand$WhenMappings
  • minor: public class added: com.dansplugins.factionsystem.command.faction.role.MfFactionRoleCommandKt
  • minor: public class added: com.dansplugins.factionsystem.command.faction.unclaim.MfFactionUnclaimAutoCommand
  • minor: public class added: com.dansplugins.factionsystem.command.faction.unclaim.MfFactionUnclaimCircleCommand
  • minor: public class added: com.dansplugins.factionsystem.command.faction.unclaimall.MfFactionUnclaimAllCommand$Companion
  • minor: public class added: com.dansplugins.factionsystem.db.MfVersionedWrite
  • minor: public class added: com.dansplugins.factionsystem.faction.MfFaction$Companion

Verification

Verified on a real Spigot server before publication; this release carries the exact jar that was verified.

  • boot gate run: booted twice on a fresh Spigot server running Minecraft 1.19.4 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 1.21.11 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 26.2 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 26.3 (11 assertions passed).
  • save-compatibility gate run on the h2 backend: data written by v7.0.0 was loaded by this release across 5 restart cycles with nothing lost (34 assertions passed).
  • save-compatibility gate run on the json backend: data written by v7.0.0 was loaded by this release across 5 restart cycles with nothing lost (36 assertions passed).
  • dependents gate run: Currencies v3.3.0, Fiefs v1.0.0, Democracy v0.4.0, MF_Bluemap v1.1.1 — each one's current stable release — enabled against this release across two boots (24 assertions passed).

Install with Dan's Plugin Manager: /dpm get <plugin>. How stable releases are made: Release channels.


drafted by Claude on behalf of Daniel Stephenson

7.0.0

For a server running v6.1.0, this release fixes messages that showed as "Missing translation" after an upgrade, and it makes usage reporting tag each event with the plugin version. You don't need to change your config, data or permissions. The major version comes from a change to the bundled usage-reporting client's Java API. It only matters to code that calls TraceClient directly.

Changes

Translations

  • Message keys added in newer releases now fall back to the translations bundled in the jar when your lang/ files on disk don't have them. Before this, those messages showed as "Missing translation" because the on-disk files are copied once and never updated. Edits you have made to your on-disk language files still take priority. (#2054)
  • The Brazilian Portuguese language file (lang_pt_BR.properties) is now copied into the plugin's lang/ folder along with the other languages. (#2054)

Usage reporting

  • When usage reporting is enabled, every event now includes the plugin version, not just the startup event. Nothing is sent when reporting is disabled, and the existing switches still work: usage-reporting.enabled, plugins/trace/config.yml, TRACE_USAGE_REPORTING and DO_NOT_TRACK. (#2053)
  • TraceClient.builder(...) now requires the program version as a third argument, and the two-argument form has been removed. Code that calls it must be updated. (#2053)

Version

v6.1.0 → 7.0.0 — MAJOR. Mechanical floor from comparing the two jars: MAJOR. Judgment: The floor is major because the public static TraceClient.builder(String, String) was replaced with a three-argument overload. Any code that compiled against the old signature will break, and nothing in the diff gives grounds to treat this class as outside the public API. Nothing else needs a higher level: the language change is a bug fix plus one more bundled file copied to disk, and the version tag on usage events adds data rather than breaking anything. Major stays as the floor.

  • minor: default config value changed: version 6.1.0 → 6.1.1-SNAPSHOT
  • major: com.dansplugins.factionsystem.trace.TraceClient: removed/changed public static com.dansplugins.factionsystem.trace.TraceClient$Builder builder(java.lang.String, java.lang.String);
  • minor: com.dansplugins.factionsystem.trace.TraceClient: added public static com.dansplugins.factionsystem.trace.TraceClient$Builder builder(java.lang.String, java.lang.String, java.lang.String);
  • minor: storage path changed: src/main/kotlin/com/dansplugins/factionsystem/MedievalFactions.kt

Verification

Verified on a real Spigot server before publication; this release carries the exact jar that was verified.

  • boot gate run: booted twice on a fresh Spigot server running Minecraft 1.19.4 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 1.21.11 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 26.2 (11 assertions passed).
  • save-compatibility gate run on the h2 backend: data written by v6.1.0 was loaded by this release across 5 restart cycles with nothing lost (34 assertions passed).
  • save-compatibility gate run on the json backend: data written by v6.1.0 was loaded by this release across 5 restart cycles with nothing lost (36 assertions passed).
  • dependents gate run: Currencies v3.0.0, Fiefs v0.12.1, Democracy v0.3.0, MF_Bluemap v1.0 — each one's current stable release — enabled against this release across two boots (24 assertions passed).

Install with Dan's Plugin Manager: /dpm get <plugin>. How stable releases are made: Release channels.


drafted by Claude on behalf of Daniel Stephenson

6.1.0

For a server running v6.0.0, this is a safe drop-in upgrade. It fixes the plugin failing to enable on Minecraft versions older than 1.20.5, such as 1.19.4. It also adds an optional read-only REST API that other tools can use to read faction data. The API is off by default. Existing data, commands, permissions and config settings behave as before, and plugins built against 6.0.0 keep working.

Changes

Compatibility fixes

  • The plugin enables again on servers older than 1.20.5, such as 1.19.4. On those versions, lingering harmful potions (poison, harming/instant damage, slowness, weakness) in claimed territory are still recognised by their base potion type (#2043).
  • Accepting a duel no longer fails on servers older than 1.21.3. Both duellists are still restored to full health when the duel starts (#2043).
  • Public class and method signatures from 6.0.0 are kept, so add-on plugins built against 6.0.0 run unchanged (#2047).

New: read-only REST API

  • An opt-in HTTP API returns factions, players, faction relationships and claims as JSON. It also has a health check at /api/health and serves its OpenAPI spec at /api/openapi (#1915).
  • It is controlled by a new api section in config.yml: api.enabled (default false), api.host (default 127.0.0.1, reachable only from the server machine) and api.port (default 8080). The API has no authentication. If you set the host to 0.0.0.0, anyone who can reach that port can read your faction data, so firewall the port (#1915).

Usage reporting

  • The shared plugins/trace/config.yml file now accepts an optional tags: block. Its tags are added to every usage report sent by plugins on the server. For example, ci: "true" keeps a test server's reports out of real-installation figures. Setting enabled: false in that file still turns reporting off for every plugin (#2046).

Version

v6.0.0 → 6.1.0 — MINOR. Mechanical floor from comparing the two jars: MINOR. Judgment: The main change is a new REST API (#1915). It is read-only and off by default (api.enabled: false, and the code also falls back to false), so no existing server opens a port on upgrade. The other changes add optional behaviour or fix compatibility: 6.0.0 failed to enable on pre-1.20.5 servers, duel acceptance failed on servers older than 1.21.3, and usage reporting can now read server-wide tags. The data format, commands, permissions and the meaning of existing config keys are unchanged, and #2047 keeps 6.0.0's public signatures, so nothing justifies raising the minor floor to major.

  • minor: default config key added: api.enabled
  • minor: default config key added: api.host
  • minor: default config key added: api.port
  • minor: default config value changed: version 6.0.0 → 6.1.0
  • minor: public class added: com.dansplugins.factionsystem.api.MfApiServer
  • minor: public class added: com.dansplugins.factionsystem.api.MfApiServer$Companion
  • minor: public class added: com.dansplugins.factionsystem.api.controller.ClaimController
  • minor: public class added: com.dansplugins.factionsystem.api.controller.FactionController
  • minor: public class added: com.dansplugins.factionsystem.api.controller.PlayerController
  • minor: public class added: com.dansplugins.factionsystem.api.controller.RelationshipController
  • minor: public class added: com.dansplugins.factionsystem.api.dto.ClaimDto
  • minor: public class added: com.dansplugins.factionsystem.api.dto.ClaimDto$Companion
  • minor: public class added: com.dansplugins.factionsystem.api.dto.ErrorResponse
  • minor: public class added: com.dansplugins.factionsystem.api.dto.FactionDto
  • minor: public class added: com.dansplugins.factionsystem.api.dto.FactionDto$Companion
  • minor: public class added: com.dansplugins.factionsystem.api.dto.PlayerDto
  • minor: public class added: com.dansplugins.factionsystem.api.dto.PlayerDto$Companion
  • minor: public class added: com.dansplugins.factionsystem.api.dto.PositionDto
  • minor: public class added: com.dansplugins.factionsystem.api.dto.PositionDto$Companion
  • minor: public class added: com.dansplugins.factionsystem.api.dto.RelationshipDto
  • minor: public class added: com.dansplugins.factionsystem.api.dto.RelationshipDto$Companion
  • minor: public class added: com.dansplugins.factionsystem.listener.AreaEffectCloudApplyListener$Companion
  • minor: public class added: com.dansplugins.factionsystem.log.MfLegacySlf4jServiceProvider
  • minor: com.dansplugins.factionsystem.claim.MfClaimService: added public final java.util.List<com.dansplugins.factionsystem.claim.MfClaimedChunk> getClaims();
  • minor: com.dansplugins.factionsystem.listener.AreaEffectCloudApplyListener: added public static final com.dansplugins.factionsystem.listener.AreaEffectCloudApplyListener$Companion Companion;
  • minor: com.dansplugins.factionsystem.listener.AreaEffectCloudApplyListener: added public static final java.util.Set access$getHARMFUL_POTION_TYPE_NAMES$cp();
  • minor: com.dansplugins.factionsystem.log.MfSlf4jServiceProvider: added public java.lang.String getRequestedApiVersion();
  • minor: com.dansplugins.factionsystem.trace.TraceClient: added public static final java.lang.String VERSION;
  • minor: storage path changed: src/main/kotlin/com/dansplugins/factionsystem/MedievalFactions.kt

Verification

Verified on a real Spigot server before publication; this release carries the exact jar that was verified.

  • boot gate run: booted twice on a fresh Spigot server running Minecraft 1.19.4 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 1.21.11 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 26.2 (11 assertions passed).
  • save-compatibility gate run on the h2 backend: data written by v6.0.0 was loaded by this release across 5 restart cycles with nothing lost (34 assertions passed).
  • save-compatibility gate run on the json backend: data written by v6.0.0 was loaded by this release across 5 restart cycles with nothing lost (36 assertions passed).
  • dependents gate run: MF_Bluemap v1.0 — each one's current stable release — enabled against this release across two boots (18 assertions passed).
  • Currencies v2.1.0-SNAPSHOT already fails to enable against the current stable v6.0.0 and is unchanged by this release (startup log contains 'Error occurred while enabling Currencies': java.lang.NoClassDefFoundError: com/dansplugins/factionsystem/shadow/preponderous/ponder/minecraft/bukkit/plugin/PluginsKt; [03:32:07] [Server thread/ERROR]: Error occurred while enabling Currencies v2.1.0-SNAPSHOT (Is it up to date?); at com.dansplugins.currencies.Currencies.onEnable(Currencies.kt:164)).

Install with Dan's Plugin Manager: /dpm get <plugin>. How stable releases are made: Release channels.


drafted by Claude on behalf of Daniel Stephenson

6.0.0

v6.0.0 is a major release for servers on v5.8.1. It adds a JSON storage backend as an alternative to the database, with /faction migrate to move data between the two. It also adds optional moderator approval for war, alliance and vassalization declarations, and optional syncing of your faction list to the DPC community API. Interaction protection changes in ways players will notice: it now covers more entities and its checks are stricter, and some commands behave differently. The plugin also now reports anonymous usage events by default; you can turn this off. Existing database setups keep working, and the plugin writes the new config keys into config.yml when it starts.

Changes

Storage

  • New JSON storage backend, selected with storage.type: json and stored at storage.json.path. Use /faction migrate (permission mf.migrate) to move data between the database and JSON. Migration will not run into a target that already has data (#1944)
  • The plugin now refuses to write to a JSON file it could not read. The unreadable file is copied aside first, so the stored data is never replaced with an empty file (#2011)
  • Embedded H2 databases now open with DB_CLOSE_ON_EXIT=FALSE. AUTO_SERVER URLs are left as they are. database.dialect now accepts the documented spellings (#2038, #2039)
  • The database connection is now closed cleanly when the server shuts down (#1944)

Diplomacy and faction management

  • Optional moderator approval for war, alliance and vassalization declarations, set with factions.warDeclarationRequiresApproval, factions.allyDeclarationRequiresApproval and factions.vassalizeDeclarationRequiresApproval. Moderators review requests with /faction pendingactions, /faction approve and /faction deny (permission mf.approve) (#1954)
  • New /faction declinevassalization command (permission mf.declinevassalization) (#1920)
  • /faction addmember now asks for confirmation before moving a player who is already in another faction. Add -f to skip the prompt (#1919)
  • New BYPASS_LOCKS faction role permission (#1911)
  • /f power now shows the faction's claim count (#1973)

Protection and interaction

  • Entity interaction protection now covers more than villagers and armour stands. factions.nonMembersCanInteractWithEntities controls it (#2001)
  • When an interaction is denied, only the block part of it is blocked (#2000)
  • Players under interaction protection can now drink anywhere and eat in the wilderness (#1984)
  • Wartime block permission checks now go strictly by action type (#1983)
  • Pressure plates and locked blocks no longer flood chat with protection messages on physical interactions (#1976, #1980)
  • Repeated physical interactions no longer queue duplicate player saves (#1982)
  • Hostile-mob spawn checks now use a broader hostile-mob check
  • Fixed a lock lookup that did not compare block coordinates correctly

Integrations

  • PlaceholderAPI placeholders now work in faction chat formats (#1999)
  • Optional DPC community API integration shares your faction list across servers. It is configured under dpc-api.* and managed with /faction dpc (permission mf.dpc). The default API URL now points at the API host (#1959, #2027)
  • Built against Spigot API 1.21.11, with compatibility for older server versions kept (#1974)

Stability

  • Several commands, including /faction map, now read the player's position and world on the main thread instead of off-thread (#2012, #2019, #2025)
  • The player save on quit no longer runs on the server thread (#2016)
  • Gate distance checks now take the world into account and can no longer overflow (#2007)

Usage reporting

  • The plugin now sends anonymous usage events (plugin name, version and command names) to a usage endpoint. Sending happens off the main thread. A startup notice in the console says whether reporting is on (#2029, #2031)

Upgrade notes

  • Usage reporting is on by default. To turn it off, set usage-reporting.enabled: false in this plugin's config.yml, or set enabled: false in plugins/trace/config.yml to turn it off for every plugin that uses it.
  • Back up your database before running /faction migrate. The migration does not make its own backup, and its target must be empty.
  • Scripts or staff workflows that use /faction addmember on players who are already in a faction must now add -f.
  • Grant mf.approve, mf.declinevassalization, mf.dpc and mf.migrate as your server needs. Check the new factions.*RequiresApproval and factions.nonMembersCanInteractWithEntities settings in config.yml.

Version

v5.8.1 → 6.0.0 — MAJOR. Mechanical floor from comparing the two jars: MAJOR. Judgment: I kept the mechanical floor of major, and the source supports it on its own. /faction addmember now asks for confirmation (or -f) before moving a player who is already in a faction (#1919). Entity interaction protection now covers more than villagers and armour stands (#2001). Wartime block checks now go strictly by action type (#1983), and spawn protection uses a new hostile-mob check instead of Monster (#1976 area / CreatureSpawnListener). Usage reporting sends events to an outside endpoint unless turned off. I could not see the patches for plugin.yml, config.yml, PlayerInteractListener, MfFactionCommand, the ally/war/vassalize commands and the language files because the diff was cut off, so their defaults and exact behaviour are unknown and I have not relied on them being safe.

  • minor: permission added: mf.approve
  • minor: permission added: mf.declinevassalization
  • minor: permission added: mf.dpc
  • minor: permission added: mf.migrate
  • minor: default config key added: dpc-api.discord-link
  • minor: default config key added: dpc-api.enabled
  • minor: default config key added: dpc-api.key
  • minor: default config key added: dpc-api.login-reminder
  • minor: default config key added: dpc-api.server-address
  • minor: default config key added: dpc-api.server-id
  • minor: default config key added: dpc-api.share-server-ip
  • minor: default config key added: dpc-api.sync-interval-minutes
  • minor: default config key added: dpc-api.url
  • minor: default config key added: factions.allyDeclarationRequiresApproval
  • minor: default config key added: factions.nonMembersCanInteractWithEntities
  • minor: default config key added: factions.vassalizeDeclarationRequiresApproval
  • minor: default config key added: factions.warDeclarationRequiresApproval
  • minor: default config key added: storage.json.path
  • minor: default config key added: storage.type
  • minor: default config key added: usage-reporting.enabled
  • minor: default config key added: usage-reporting.endpoint
  • minor: default config key added: usage-reporting.key
  • minor: default config value changed: version 5.8.1 → 6.0.0
  • minor: public class added: com.dansplugins.factionsystem.approval.MfApprovalRequest
  • minor: public class added: com.dansplugins.factionsystem.approval.MfApprovalRequestId
  • minor: public class added: com.dansplugins.factionsystem.approval.MfApprovalRequestId$Companion
  • minor: public class added: com.dansplugins.factionsystem.approval.MfApprovalRequestService
  • minor: public class added: com.dansplugins.factionsystem.approval.MfApprovalRequestType
  • minor: public class added: com.dansplugins.factionsystem.approval.MfApprovalRequestType$WhenMappings
  • minor: public class added: com.dansplugins.factionsystem.command.faction.approve.MfFactionApproveCommand

Verification

Verified on a real Spigot server before publication; this release carries the exact jar that was verified.

  • boot gate run: booted twice on a fresh Spigot server (10 assertions passed).
  • save-compatibility gate run on the h2 backend: data written by v5.8.1 was loaded by this release across 5 restart cycles with nothing lost (34 assertions passed).
  • save-compatibility gate run on the json backend: data written by v5.8.1 was loaded by this release across 5 restart cycles with nothing lost (35 assertions passed).
  • dependents gate run: MF_Bluemap v1.0 — each one's current stable release — enabled against this release across two boots (18 assertions passed).
  • The current stable release v5.8.1 does not close its database cleanly on shutdown (medieval_factions_db.trace.db left behind after its own stops); this release does.
  • Currencies v2.1.0-SNAPSHOT already fails to enable against the current stable v5.8.1 and is unchanged by this release (startup log contains 'Error occurred while enabling Currencies': java.lang.NoClassDefFoundError: com/dansplugins/factionsystem/shadow/preponderous/ponder/minecraft/bukkit/plugin/PluginsKt; [01:54:37] [Server thread/ERROR]: Error occurred while enabling Currencies v2.1.0-SNAPSHOT (Is it up to date?); at com.dansplugins.currencies.Currencies.onEnable(Currencies.kt:164)).

Install with Dan's Plugin Manager: /dpm get <plugin>. How stable releases are made: Release channels.


drafted by Claude on behalf of Daniel Stephenson

Patches a protection bypass where holding any block listed in factions.wartimePlaceableBlocks incorrectly granted the ability to interact with all blocks in enemy territory — including opening chests, flipping levers, and operating doors — regardless of whether those blocks appeared in factions.wartimeInteractableBlocks.

Fixed

  • Holding a block listed in wartimePlaceableBlocks no longer allows unrestricted interaction with enemy faction blocks during wartime. Placement permissions and interaction permissions are now evaluated independently.

Known Limitations

The underlying listener logic that distinguishes between block placement and block interaction has not been fully refactored. The wartime permission system may still be susceptible to edge cases in this area. This is being tracked for a future release.

Upgrade Notes

No configuration changes are required. If you added blocks to wartimePlaceableBlocks as a workaround to grant interaction rights, those should be moved to wartimeInteractableBlocks instead.

Full Changelog

v5.8.0...v5.8.1

What's New

Wartime Block Controls Servers can now configure separate block lists for wartime — specifying which blocks are placeable, breakable, and interactable during active conflicts. This gives admins much finer control over PvP dynamics without touching normal gameplay.

Fence Gate Access The nonMembersCanInteractWithDoors config option now also applies to fence gates, closing a long-standing gap in access control behavior.

Horse Despawn Fix Spawn blocking in claimed land has been scoped to hostile mobs only, preventing tamed horses and other passive mobs from despawning when players relog inside a claim.

Under the Hood

  • Removed the Ponder dependency; utility functions are now inlined, trimming an external dependency from the project.
  • Expanded unit test coverage for the core faction system.
  • Added a database querying guide covering direct DB access for both Docker and VM setups.
  • Repository aligned with DPC conventions for consistency across Dans-Plugins projects.

This release fixes an issue where the nonMembersCanInteractWithDoors configuration option was not functioning as intended and resolves a ladder bypass bug that could allow unintended access. These changes improve claim security and ensure configuration settings are properly enforced.

What’s Changed

  • Fixed nonMembersCanInteractWithDoors config option behavior
  • Patched ladder bypass exploit affecting protected areas

Full Changelog

https://github.com/Dans-Plugins/Medieval-Factions/compare/v5.7.1...v5.7.2

This release fixes an issue where ladder placement was incorrectly blocked in enemy territory during wartime. Ladder placement now behaves as expected, ensuring smoother and more consistent siege and combat gameplay.

What's Changed

  • Fixed ladder placement being blocked in enemy territory during wartime.

Full Changelog

https://github.com/Dans-Plugins/Medieval-Factions/compare/v5.7.0...v5.7.1

Medieval Factions v5.7.0 delivers a substantial set of improvements focused on stability, configuration flexibility, and faction management, alongside updates for the latest Minecraft version.

This release introduces leaderless faction support, expanded force/administrator command capabilities, and new world-based claim blocking options, giving server operators more control over how factions behave across different worlds. Protection logic has been tightened with fixes for locked chest hopper bypasses and updated handling for new potion effects and copper golems.

On the technical side, v5.7.0 includes multiple stability and reliability fixes, such as resolving NullPointerExceptions, improving concurrent gate save handling, and removing outdated territory item pickup/drop restrictions. Development and deployment workflows have also been enhanced with automated JAR publishing, improved documentation, and updated SpigotMC source-of-truth content.

Highlights

  • Leaderless faction support with operator management commands
  • World-based claim blocking configuration
  • Fixed double-chest hopper bypass and protection edge cases
  • Improved faction flag commands with force permissions and refactoring
  • Test server updated to Minecraft 1.21.11
  • Comprehensive in-repository documentation added
  • Automated JAR publishing to GitHub Packages

Special thanks to @AmethystWyrm for their first contribution to the project.

For a complete list of changes, see the Full Changelog:
https://github.com/Dans-Plugins/Medieval-Factions/compare/v5.6.1...v5.7.0

What's Changed

Full Changelog: https://github.com/Dans-Plugins/Medieval-Factions/compare/v5.6.0...v5.6.1

What's Changed

Full Changelog: https://github.com/Dans-Plugins/Medieval-Factions/compare/v5.5.0...v5.6.0

Functionality Changes

  • Made Dynmap processing more configurable by allowing optional realm and faction info display. #1829
  • Updated Dynmap to reflect faction disbandment. #1830
  • Prevented an anvil duplication exploit involving falling blocks in gates. #1831

Other Changes

  • Added unit tests for Dynmap integration and simplified test server setup. #1826]
  • Enabled BlueMap in the test server. #1828
  • Updated project version to 5.5.0. #1833

Verification

  • Updated the test container to Minecraft 1.21.4 and verified plugin compatibility. #1827
  • Confirmed that factions persist when upgrading from version 5.4.0.

Functionality Changes

  • Fixed an issue where the power insufficiency check failed when a faction attempted to conquer land.
  • Added the ability for players to submit applications to join factions.

Other Changes

  • Added a Dockerfile with Dynmap support.
  • Updated CONTRIBUTING.md.
  • Removed upgrade instructions for MF 5 from the README.

Verification

  • Confirmed that factions persist when upgrading from version 5.3.0.

What's Changed

New Contributors

Full Changelog: https://github.com/Dans-Plugins/Medieval-Factions/compare/v5.2.0...v5.3.0

What's Changed

New Contributors

Full Changelog: https://github.com/Dans-Plugins/Medieval-Factions/compare/v5.1.4...v5.2.0

What's Changed

Full Changelog: https://github.com/Dans-Plugins/Medieval-Factions/compare/v5.1.3...v5.1.4

Expansions

Plugins that build on Medieval Factions and need it installed.

BlueMap Medieval Factions

Renders Medieval Factions claims on BlueMap's web map. Originally written by Kilz.

Currencies

An expansion for Medieval Factions that allows faction owners to create and mint local currencies.

Democracy

Lets a Medieval Factions faction hold elections: members stand as candidates, vote, and follow the count.

Fiefs

Allows players to create fiefs and manage them.

Something wrong, or something missing?

Bugs go to the plugin's issue tracker, where they can actually be fixed and tracked. Ideas for new behaviour go to the Dev Portal, where the community can upvote them.