SovereignNation
SovereignNation 是一款高性能的政治联邦与外交插件,旨在将 BetterTeams 扩展为完整的地缘政治玩法。它允许氏族所有者将多个团队统一在一个主权旗帜下组成联邦,管理共享国库,并处理外交关系,且不会干扰现有的领地插件。
该插件原生支持现代 Paper 和 Spigot 生态(1.21+),纯粹作为管理与政治层叠组件运行,零性能开销。
依赖项
- BetterTeams (必需): 核心团队管理、团队数据访问及玩家等级验证。
- Vault (可选): 仅在使用
/nation deposit 和 /nation withdraw 国库命令时才需要。
- PlaceholderAPI (可选): 用于在 TAB 列表、计分板或聊天插件中显示国家变量。
主要功能
- 团队联邦: 将多个 BetterTeams 组合为一个国家。创始团队充当首都,而成员氏族保留其内部身份和名单。
- 共享国家国库: 完全集成 Vault。联合团队可以将资金存入国家银行账户,用于大型项目或军事开支。
- 外交关系: 建立相互联盟或单方面宣布敌对国家,并实时跟踪状态。
- PlaceholderAPI 支持: 原生扩展(
%sovereign_*%),便于在 TAB 列表、计分板和聊天插件中显示国家标签、首都城市、成员数量和余额。
- 异步持久化: 所有数据在执行命令时以及通过定期后台自动保存时,均会自动保存到磁盘(
nations.json)。
- 兼容领地系统: 非侵入式架构设计,可无缝配合 RedProtect 和 LandClaimPlus 等领地系统运行。
命令与子命令
| 命令 |
权限 |
描述 |
/nation create <name> |
sovereignnation.create |
以你的团队为首都建立新国家。 |
/nation invite <team> |
sovereignnation.use |
邀请另一个 BetterTeams 氏族加入联邦。 |
/nation join <nation> |
sovereignnation.use |
接受待处理的联邦邀请。 |
/nation leave |
sovereignnation.use |
从联邦国家中退出你的氏族。 |
/nation kick <team> |
sovereignnation.use |
移除成员团队(仅限首都所有者)。 |
/nation deposit <amount> |
sovereignnation.use |
将个人资金存入国家国库。 |
/nation withdraw <amount> |
sovereignnation.use |
从国库提取资金(仅限首都所有者)。 |
/nation ally <nation> |
sovereignnation.use |
提议或确立相互联盟。 |
/nation enemy <nation> |
sovereignnation.use |
将另一个国家宣布为敌人。 |
/nation neutral <nation> |
sovereignnation.use |
将外交关系重置为中立。 |
/nation info [name] |
sovereignnation.use |
查看国家的详细概览。 |
/nation list |
sovereignnation.use |
列出服务器上所有已注册的国家。 |
/nation disband |
sovereignnation.use |
永久解散国家(仅限首都所有者)。 |
PlaceholderAPI 集成
在 PAPI 支持的任何地方使用以下占位符:
%sovereign_nation_name% — 显示玩家所在的国家名称(若无则为 None)。
%sovereign_nation_capital% — 显示玩家所在国家的首都团队。
%sovereign_nation_balance% — 返回当前国家国库余额。
%sovereign_nation_teams_count% — 联邦成员团队的总数。
%sovereign_nation_allies_count% — 盟国数量。
%sovereign_nation_enemies_count% — 敌对/敌人国家数量。
%sovereign_is_capital% — 如果玩家的团队是首都则返回 true。
SovereignNation
SovereignNation is a high-performance political federation and diplomacy plugin designed to expand BetterTeams into full geopolitical gameplay. It allows clan owners to federate multiple teams under a unified sovereign banner, manage shared treasuries, and handle diplomatic relations without interfering with existing land-claim plugins.
Built natively for modern Paper and Spigot ecosystems (1.21+), SovereignNation operates purely as an administrative and political overlay with zero performance overhead.
Dependencies
- BetterTeams (Required): Core team management, team data access, and player rank validation.
- Vault (Optional): Required only if you want to use the
/nation deposit and /nation withdraw treasury commands.
- PlaceholderAPI (Optional): Required to display nation variables in TAB, scoreboards, or chat plugins.
Key Features
- Team Federation: Band multiple BetterTeams together under one nation. A founding team acts as the capital, while member clans retain their internal identities and rosters.
- Shared Nation Treasury: Fully integrated with Vault. Federated teams can pool money into a national bank account for major projects or military expenses.
- Diplomatic Relations: Forge mutual alliances or unilaterally declare enemy states with real-time status tracking.
- PlaceholderAPI Support: Native expansion (
%sovereign_*%) to easily display nation tags, capital cities, member counts, and balances in TAB, scoreboards, and chat plugins.
- Asynchronous Persistence: All data is automatically saved to disk (
nations.json) both upon command execution and via periodic background autosaves.
- Claim-Engine Friendly: Non-intrusive architecture designed to run seamlessly alongside claim systems like RedProtect and LandClaimPlus.
Commands & Subcommands
| Command |
Permission |
Description |
/nation create <name> |
sovereignnation.create |
Establish a new nation with your team as the capital. |
/nation invite <team> |
sovereignnation.use |
Invite another BetterTeams clan to federate. |
/nation join <nation> |
sovereignnation.use |
Accept a pending federation invitation. |
/nation leave |
sovereignnation.use |
Withdraw your clan from a federated nation. |
/nation kick <team> |
sovereignnation.use |
Remove a member team (Capital owner only). |
/nation deposit <amount> |
sovereignnation.use |
Deposit personal funds into the nation treasury. |
/nation withdraw <amount> |
sovereignnation.use |
Withdraw funds from the treasury (Capital owner only). |
/nation ally <nation> |
sovereignnation.use |
Propose or finalize a mutual alliance. |
/nation enemy <nation> |
sovereignnation.use |
Declare another nation as an enemy. |
/nation neutral <nation> |
sovereignnation.use |
Reset diplomatic relations to neutral. |
/nation info [name] |
sovereignnation.use |
View detailed overview of a nation. |
/nation list |
sovereignnation.use |
List all registered nations on the server. |
/nation disband |
sovereignnation.use |
Dissolve the nation permanently (Capital owner only). |
PlaceholderAPI Integration
Use the following placeholders anywhere PAPI is supported:
%sovereign_nation_name% — Displays the player's nation name (or None).
%sovereign_nation_capital% — Displays the capital team of the player's nation.
%sovereign_nation_balance% — Returns the current nation treasury balance.
%sovereign_nation_teams_count% — Total count of federated member teams.
%sovereign_nation_allies_count% — Number of allied nations.
%sovereign_nation_enemies_count% — Number of hostile/enemy nations.
%sovereign_is_capital% — Returns true if the player's team is the nation's capital.
评论 0
登录后参与评分
还没有评论,来抢沙发吧