### Xenofactions 2.1 Stable Release
The largest Xenofactions update to date, featuring a complete overhaul of warfare, diplomacy, territory management, prestige, administration, and server customization.
---
## Warfare & Diplomacy Overhaul
### New War System
* Wars are now faction-versus-faction.
* War declarations require target factions to meet online activity requirements.
* Allied factions can participate in allied wars.
* Allies can no longer declare war on each other.
* Alliance breaks now trigger war cooldowns.
* Added configurable war declaration requirements and restrictions.
### Diplomacy
* Added **Surrender**, **Ceasefire**, and **Peace** agreements.
* Added configurable war cooldown periods.
* Added city transfer peace terms.
* Cities can now be ceded during surrender and peace negotiations.
### Raid System Rework
* Added online-based raid protection.
* Added war-age requirements before raids can begin.
* Added extensive administrative controls for war and raid restrictions.
* Legacy behavior can be restored through configuration.
---
## Prestige & Nation Economy Overhaul
### New Prestige Economy
* Completely rebalanced prestige generation and upkeep.
* Added land upkeep costs.
* Rebalanced city, building, and territorial expansion costs.
* Added scaling city settlement costs.
* Added prestige-based war declaration costs.
* Medical Tents now consume prestige.
* Warp Tents now have significantly increased upkeep.
### National Stability System
* Wars now consume prestige over time.
* Long wars become progressively more expensive.
* Added Prestige Bankruptcy stages:
* Financial Crisis
* National Collapse
* Fallen Nation
* Added escalating penalties for nations that fail to maintain prestige.
### War Reparations
* Surrendering factions now transfer 50% of their prestige generation to the victor for 84 hours.
---
## City & Territory Overhaul
### City Centers
* Replaced traditional Claim Flags with **City Centers**.
* Cities must now be founded and named.
* Territory expansion is now tied to city claim radius.
* Added city ownership tracking.
* Added city placement validation and territory restrictions.
* Added non-overlapping city borders.
* Added minimum spacing requirements between cities.
### City Progression
* Added five city development levels:
* Settlement
* Town
* City
* Metropolis
* Capital
* Added city upgrade system.
* Added claim radius scaling based on city level.
* Maximum city radius is now 6 chunks.
### City Management
* Added city rename popup during founding.
* Added city ownership transfers.
* Added duplicate city name protection.
* Added city upgrade confirmations and cost previews.
* Added prestige cost previews for city creation.
* Improved city conquest behavior and territory transfers.
---
## Dynmap Integration
### Optional Dynmap Support
* Added automatic Dynmap detection with no hard dependency.
* Added live faction territory overlays.
* Added city border rendering.
* Added city center markers.
* Added faction-colored territory visualization.
### Dynmap Information Tooltips
* City Name
* Owning Faction
* City Level
* Claim Count
* Chunk Coordinates
### Live Updates
Dynmap overlays automatically update when:
* Cities are created
* Cities are renamed
* Cities are transferred
* Cities are removed
* Territory changes occur
* Faction names change
* Faction colors change
---
## Custom Faction Flags
### Custom Flag Images
* Added support for custom faction flags using image URLs.
* Imported flags are automatically downloaded, validated, resized, sanitized, and cached.
* Added client-side texture synchronization and caching.
* Added fallback handling for missing or invalid images.
* Custom flags now display throughout Xenofactions interfaces.
### Security
* Restricted imports to approved image hosts.
* Added image size, dimension, and format validation.
* Added metadata stripping and image sanitization.
* Added protection against invalid URLs and unsafe redirects.
* Downloads are processed asynchronously to avoid server lag.
---
## Team Deathmatch Expansion
### New TDM Features
* Map definitions
* Map voting
* Per-map kit definitions
* Dedicated TDM menu
* Friendly-fire protection
### TDM Command Overhaul
* Consolidated TDM under the `/tdm` command tree.
* Added `/tdm menu` and `/tdm openmenu`.
* Reorganized help pages and command structure.
* Improved validation and usage feedback.
* Unified team switching behavior.
* Removed legacy TDM commands.
---
## Protection Systems
### New Player Protection
* Added configurable new-player protection.
* 4-hour PvP grace period.
* 24-hour keep-inventory protection.
* Persistent UUID-based storage.
* Protection survives restarts and offline periods.
### Build Grace
* Added one-time 48-hour build grace.
* Protected factions cannot attack or be attacked.
* Protected factions cannot enter wilderness or foreign territory.
* Added administrative controls for resetting or ending grace periods.
* Reworked border handling and movement enforcement.
---
## Configuration Overhaul
### New Configuration System
* Added extensive configuration options covering:
* Warfare
* Raiding
* Diplomacy
* Cities
* Prestige
* Protection Systems
* Gameplay Balancing
### Configuration Improvements
* Reorganized `hfr.cfg` into structured categories.
* Added documentation and comments throughout the configuration.
* Improved readability and maintainability.
* Added automatic migration support for legacy entries.
* Removed deprecated and duplicate config generation.
### Additional Configuration
* Added configurable minimum and maximum Y-level options for stone drops.
---
## Commands & Quality of Life
* Reworked `/c` and `/xc` command handling.
* Improved command validation and error reporting.
* Added player, faction, and command tab completion.
* Improved support for faction names containing spaces.
* Expanded and reorganized help menus.
* Added numerous city, territory, conquest, and ownership validation checks.
---
## Stability & Bug Fixes
* Fixed territory transfer issues during faction merges.
* Fixed conquered cities not transferring territory correctly.
* Fixed claims persisting after City Center removal.
* Fixed invalid City Centers causing errors.
* Fixed city rename behavior.
* Fixed MCHeli-related crashes when the mod is absent.
* Improved movement handling around protected borders.
* Reduced chat spam and false-positive border enforcement.
* Numerous warfare, diplomacy, city, GUI, and territory management fixes.
**Xenofactions 2.1 marks the completion of the major warfare, diplomacy, city, and prestige systems and serves as the project's long-term stable release. We hope you all enjoy it!**
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }