LegacyLand
一款面向 Paper 1.21 + Towny 的文明模拟插件。
许可协议
禁止未经授权的修改和重新分发。
从版本 1.0-Beta2.0 开始,本项目遵循 MS-RSL 许可协议。
源代码仅供查看。不允许修改和重新分发。
从版本 1.0-pre1 开始,本项目遵循 All Right Reserved(保留所有权利)协议。
代码永远不会发布,不允许修改、重新分发和解混淆。
概述
LegacyLand 在 Towny 国家框架的基础上,扩展了一套完整的文明模拟系统,涵盖政治、经济、外交、战争、科技、季节等方面——为玩家提供深度的策略与生存体验。

功能模块
国家与政治
- 政府系统:5 种可配置的政府类型(封建制、共和制、君主立宪制、军事独裁、贸易联邦),由
politics.yml 驱动,支持可扩展的自定义效果(加速、粒子效果等)
- 角色与权限:国王、宰相、后勤官、议员等——针对每个角色进行细粒度的权限控制
- 法令系统:直接颁布或通过成员投票颁布法令;支持税收调整、研究加成及其他政策类型
- 科技树:科研点积累与消耗;科技线受政府类型锁定/解锁;附庸国科技溢出机制

经济
- 货币与国库:每个国家拥有自己的货币,以实体物品形式流通;铸币机消耗金锭来生产货币
- 银行系统:存款、取款、转账和货币兑换(手续费 15%;汇率动态挂钩国库储备)
- 贷款:申请国家贷款并支付利息;逾期还款会影响信用评分
- 期货合约:卖家列出未来交付的合约;买家在到期日提取货物
- 股票市场:每个国家可发行一只股票;价格与国家实力(国库 + 领土 + 人口)动态挂钩;支持卖单撮合与分红派发
- 税收:贸易税、土地税、附庸税等;可通过法令进行调整
- 经济战:禁运、制裁、通胀攻击、货币操纵
- 经济分析:实时 GDP 排名、通货膨胀率和信用评分追踪
外交与战争
- 外交关系:盟友、贸易协定、技术协定、敌对、中立等关系类型
- 担保系统:强国保护弱国;担保国的科技效果部分溢出至被保护国
- 常规战争:宣战、加入作为士兵 / 后勤人员 / 侦察兵、投降或求和
- 攻城战:在前线建立据点和补给站以攻占城镇核心
- 旗帜争夺战:基于计时器抢夺旗帜的轻量级领土争夺机制
玩家状态
- 温度系统:受季节、生物群系和装备动态影响
- 水分系统:玩家在干旱环境中会脱水
- 职业系统:主职业 + 副职业,包含等级和经验值
- ActionBar HUD:实时显示温度、水分和职业状态

世界系统
- 季节系统:4 个季节 × 3 个子季节 = 共 12 个子季节;影响温度、降雨和降雪概率
- 区块资源定价:基于生物群系的资源产出差异;资源开采追踪;动态土地定价
- 市场系统:城镇举办实体市场,玩家通过箱子商店出售物品
- 组织系统:玩家创建跨国家的组织,管理成员和据点
基础设施
- 多数据库支持:SQLite(默认)/ MySQL(HikariCP 连接池)/ MongoDB
- GUI 框架:统一的图形界面系统
- 成就系统:玩家里程碑解锁
- BlueMap 集成:在世界地图上实时渲染土地价格和标记国家位置
- PlaceholderAPI:20+ 占位符变量;兼容 TAB、DeluxeMenus 等插件
- Folia 支持:异步调度器自动适配 Folia 和 Paper
依赖项
插件
| 依赖项 |
是否必需 |
版本 |
| Paper |
✅ 必需 |
1.21+ |
| Towny |
✅ 必需 |
0.102.0.0+ |
| ItemsAdder |
✅ 必需 |
3.6.3+ |
| Vault |
✅ 必需 |
— |
| PlaceholderAPI |
推荐 |
— |
| BlueMap |
可选 |
— |
配置
配置文件
config.yml (核心配置)
database:
type: sqlite # sqlite / mysql / mongodb
sqlite:
filename: legacyland.db
mysql:
host: localhost
port: 3306
database: legacyland
username: root
password: password
pool:
maximum-pool-size: 10
minimum-idle: 2
connection-timeout: 30000
mongodb:
host: localhost
port: 27017
database: legacyland
player-status:
enable-actionbar: true
actionbar-update-interval: 10 # ticks
season:
days-per-sub-season: 8
tech:
points-per-member: 2 # research points generated per online member per tick
research-tick-interval: 6000 # research point generation interval (ticks)
politics.yml
定义 5 种政府类型:效果乘数、角色列表和自定义效果(加速、粒子效果等)。
tech.yml
定义科技树节点:科技线、层级、前置条件、研究成本和效果键。
命令概览
如需完整的玩家使用说明,请参阅 玩家指南(简体中文)
| 指令 |
功能 |
/legacy |
国家信息、政府、角色管理 |
/diplomacy |
外交关系、宣战、联盟、协议 |
/guarantee |
保证国/保护国管理 |
/war |
战争列表、加入、投降、和平 |
/siege |
围城战据点与核心管理 |
/flagwar |
旗帜战争管理 |
/economy |
国库创建、铸币、信息查询 |
/bank |
存款、取款、转账、货币兑换 |
/finance |
贷款与期货合约 |
/stock |
股票发行、交易、分红 |
/ecowar |
制裁、禁运、GDP 排名 |
/tax |
查看和配置税率 |
/law |
颁布法令、提案与投票 |
/tech |
科技树概览与研究 |
/market |
市场信息与管控 |
/price |
箱子商店定价 |
/resource |
资源系统查询 |
/landprice |
土地价格查询 |
/season |
季节信息与管理员控制 |
/player |
玩家属性与职业管理 |
/status |
玩家状态概览 |
更新日志
v1.0-pre2 (当前版本)
- ✅ 完整经济系统:银行、贷款、期货、股票、铸币、国库、税收
- ✅ 经济战:禁运、制裁、通货膨胀攻击、货币操纵、GDP 统计
- ✅ 战争系统:标准战争、围城战(据点 + 补给站)、旗帜战争
- ✅ 法令系统:直接颁布 + 提案投票,多种法令类型
- ✅ 科技树:研究点积累、政府锁定线路、保护国溢出机制
- ✅ 保证国/保护国外交系统
- ✅ 区块资源定价 + 动态土地定价
- ✅ 市场系统 + 箱子商店定价
- ✅ 组织系统
- ✅ GUI 框架
- ✅ BlueMap 土地价格与国家标记集成
- ✅ 建筑混淆与加密(ProGuard + ASM XOR 字符串加密)
- ✅ Folia 兼容性
剧透
v1.0-Beta2
- ✅ 配置驱动的政府系统(5 种类型)
- ✅ 自定义效果(加速、粒子效果)
- ✅ 多数据库支持(SQLite / MySQL / MongoDB)
- ✅ 季节系统(12 个子季节)
- ✅ 玩家状态系统(温度、水分、职业)
- ✅ PlaceholderAPI 集成
v1.0-Beta1
- ✅ 国家成员与角色系统
- ✅ 国家税收系统
- ✅ 国家外交系统
- ✅ SQLite 数据持久化
贡献者
ian171: Github
Serendisand: Github
LegacyLand
A civilization simulation plugin for Paper 1.21 + Towny.
License
Unauthorized modification and redistribution prohibited.
Starting from version 1.0-Beta2.0, this project is licensed under MS-RSL.
Source code is viewable only. Modification and redistribution are not permitted.
Starting from version 1.0-pre1. this project is licensed under All Right Reserved.
Code will never be published, Modification, redistribution and De-obfuscation are not permitted.
Overview
LegacyLand extends the Towny nation framework with a full-stack civilization simulation system covering politics, economy, diplomacy, warfare, technology, seasons, and more — giving players a deep strategy and survival experience.

Feature Modules
Nation & Politics
- Government System: 5 configurable government types (Feudal, Republic, Constitutional Monarchy, Military Dictatorship, Trade Federation), driven by
politics.yml, with extensible custom effects (speed boost, particle effects, etc.)
- Roles & Permissions: King, Chancellor, Supply Officer, Parliament Member, and more — fine-grained permission control per role
- Decree System: Enact decrees directly or via member vote; supports tax adjustments, research bonuses, and other policy types
- Tech Tree: Research point accumulation and spending; tech lines locked/unlocked by government type; protectorate tech overflow mechanic

Economy
- Currency & Treasury: Each nation has its own currency circulating as physical items; minting machines consume gold ingots to produce currency
- Banking: Deposit, withdraw, transfer, and exchange currencies (15% fee; exchange rate dynamically pegged to treasury reserves)
- Loans: Apply for nation loans with interest; late repayment affects credit score
- Futures Contracts: Sellers list contracts for future delivery; buyers claim goods on due date
- Stock Market: Each nation may list one stock; price dynamically tied to national power (treasury + territory + population); supports sell-order matching and dividend distribution
- Taxation: Trade tax, land tax, vassal tax, and more; adjustable via decrees
- Economic Warfare: Embargo, sanctions, inflation attack, currency manipulation
- Economic Analytics: Real-time GDP rankings, inflation rate, and credit score tracking
Diplomacy & Warfare
- Diplomacy: Ally, trade agreement, tech agreement, hostile, and neutral relation types
- Guarantee System: Stronger nations protect weaker ones; guarantor's tech effects partially overflow to the protected nation
- Standard War: Declare war, join as Soldier / Logistics / Scout, surrender, or seek peace
- Siege War: Establish outposts and supply stations in the field to capture town cores
- Flag War: Lightweight territory contest using a timer-based flag capture mechanic
Player Status
- Temperature System: Dynamically influenced by season, biome, and equipped gear
- Hydration System: Players dehydrate in arid environments
- Profession System: Main profession + sub-profession, with leveling and experience
- ActionBar HUD: Real-time display of temperature, hydration, and profession status

World Systems
- Season System: 4 seasons × 3 sub-seasons = 12 sub-seasons total; affects temperature, rain, and snow probabilities
- Chunk Resource Pricing: Biome-based resource output differences; resource extraction tracking; dynamic land pricing
- Market System: Towns host physical markets where players sell items via chest shops
- Organization System: Players create cross-nation organizations with member and outpost management
Infrastructure
- Multi-Database: SQLite (default) / MySQL (HikariCP connection pool) / MongoDB
- GUI Framework: Unified graphical interface system
- Achievement System: Player milestone unlocks
- BlueMap Integration: Land price and nation markers rendered in real time on the world map
- PlaceholderAPI: 20+ placeholder variables; compatible with TAB, DeluxeMenus, and similar plugins
- Folia Support: Async scheduler automatically adapts to both Folia and Paper
Dependencies
Plugins
| Dependency |
Required |
Version |
| Paper |
✅ Required |
1.21+ |
| Towny |
✅ Required |
0.102.0.0+ |
| ItemsAdder |
✅ Required |
3.6.3+ |
| Vault |
✅ Required |
— |
| PlaceholderAPI |
Recommended |
— |
| BlueMap |
Optional |
— |
Configuration
Configurations
config.yml (Core)
database:
type: sqlite # sqlite / mysql / mongodb
sqlite:
filename: legacyland.db
mysql:
host: localhost
port: 3306
database: legacyland
username: root
password: password
pool:
maximum-pool-size: 10
minimum-idle: 2
connection-timeout: 30000
mongodb:
host: localhost
port: 27017
database: legacyland
player-status:
enable-actionbar: true
actionbar-update-interval: 10 # ticks
season:
days-per-sub-season: 8
tech:
points-per-member: 2 # research points generated per online member per tick
research-tick-interval: 6000 # research point generation interval (ticks)
politics.yml
Defines the 5 government types: effect multipliers, role lists, and custom effects (speed boost, particle effects, etc.).
tech.yml
Defines tech tree nodes: line, tier, prerequisites, research cost, and effect keys.
Command Overview
For full player usage details, see in Player Guide (Simplifed Chinese)
| Command |
Function |
/legacy |
Nation info, government, role management |
/diplomacy |
Diplomatic relations, war declarations, alliances, agreements |
/guarantee |
Guarantee/protectorate management |
/war |
War list, join, surrender, peace |
/siege |
Siege war outpost and core management |
/flagwar |
Flag war management |
/economy |
Treasury creation, minting, info |
/bank |
Deposit, withdraw, transfer, currency exchange |
/finance |
Loans and futures contracts |
/stock |
Stock issuance, trading, dividends |
/ecowar |
Sanctions, embargo, GDP rankings |
/tax |
View and configure tax rates |
/law |
Enact decrees, propose and vote |
/tech |
Tech tree overview and research |
/market |
Market info and management |
/price |
Chest shop pricing |
/resource |
Resource system queries |
/landprice |
Land price queries |
/season |
Season info and admin controls |
/player |
Player attributes and profession management |
/status |
Player status overview |
Changelog
v1.0-pre2 (Current)
- ✅ Full economy system: banking, loans, futures, stocks, minting, treasury, taxation
- ✅ Economic warfare: embargo, sanctions, inflation attack, currency manipulation, GDP stats
- ✅ War system: standard war, siege war (outpost + supply station), flag war
- ✅ Decree system: direct enactment + proposal voting, multiple decree types
- ✅ Tech tree: research point accumulation, government-locked lines, protectorate overflow
- ✅ Guarantee/protectorate diplomacy system
- ✅ Chunk resource pricing + dynamic land pricing
- ✅ Market system + chest shop pricing
- ✅ Organization system
- ✅ GUI framework
- ✅ BlueMap land price and nation marker integration
- ✅ Build obfuscation & encryption (ProGuard + ASM XOR string encryption)
- ✅ Folia compatibility
Spoiler
v1.0-Beta2
- ✅ Configuration-driven government system (5 types)
- ✅ Custom effects (speed boost, particle effects)
- ✅ Multi-database support (SQLite / MySQL / MongoDB)
- ✅ Season system (12 sub-seasons)
- ✅ Player status system (temperature, hydration, profession)
- ✅ PlaceholderAPI integration
v1.0-Beta1
- ✅ Nation member and role system
- ✅ Nation taxation system
- ✅ Nation diplomacy system
- ✅ SQLite data persistence
Contributor
ian171: Github
Serendisand: Github
评论 0
登录后参与评分
还没有评论,来抢沙发吧