六大法令
一款专为议会式角色扮演服务器设计的 Fabric 服务端治理、投票、轻量级经济及公会系统。
Hexarchate(或您定义的任何议会)可以在游戏中创建、辩论并对法令进行投票,具备自动法定人数/多数决处理、赛季历史记录日志、可选的多层级货币(默认金/银/铜),以及拥有共享金库的玩家公会。
当前版本: 0.2.1 (Minecraft 1.21.1, Fabric)
功能特性
- 通过 JSON (
council.json) 定义的议会席位。
- 命名议会:使用可配置的
councilName,该名称将用于与法令相关的消息中。
- 议会仪式命令:召集或重新召集议会,伴有全服广播、可配置的钟声和烟花效果。
- 通过
council.json 中的 ceremonySound 配置可自定义的议会仪式音效(例如 decrees_of_the_six:council_chime)。
- 具有生命周期的法令:草稿 (DRAFT) → 投票中 (VOTING) → 已颁布 (ENACTED)/已否决 (REJECTED)/已取消 (CANCELLED)。
- 可配置的投票规则(法定人数、持续时间、多数决模式、平局处理)。
- 全局开关:启用/禁用整个法令系统,或限制仅管理员可用。
- 席位工具,用于分配议会成员。
- 针对有待决投票的议会成员的加入提醒。
- 当仅剩一个席位待对法令投票时,发送一票剩余提示。
- 通过
/decrees decree list [page] 和 /decrees history [page] 实现分页的法令列表与游戏内历史记录。
- 通过
/decrees decree list status <draft|voting|enacted|rejected|cancelled> [page] 实现按状态过滤的法令列表。
- 通过
/decrees decree list my [page] 和 /decrees decree list active [page] 实现带分页的“我的法令”及活跃列表。
- 通过
/decrees stats ... 和 /decrees status [id] 实现席位统计与状态辅助命令。
- 针对法令 ID、席位 ID 和类别提供整洁的聊天格式及 Tab 补全。
- 当打开法令时,为议会成员提供可点击的投票提示(按钮
[Yes] [No] [Abstain])。
- 最终法令的文本文本日志,用于赛季历史记录。
- 可选公会系统:
- 玩家创建的公会,包含等级(
Leader / Officer / Veteran / Member / Recruit),
- 每个公会可自定义等级头衔,
- 每个公会在同一经济系统中拥有独立的金库账户,
- Vox Imperion 工具用于检查和监管公会。
- 可选 Hexarchate 面板 UI (G键)(如果客户端也加载了模组):
- 账本标签页:显示玩家余额和交易记录,
- 公会标签页:显示公会名称、等级、成员数量及公会金库余额,并提供快捷操作(存款/离开/接受邀请)。
- 所有交互均通过游戏内的
/decrees、/money、/economy、/guild 和 /vox guild 命令完成。
经济/金钱系统
- 可选的单一货币,含三种面额(默认:金币、银币、铜币 Scales)。
- 通过
economy_config.json 配置名称和兑换比例。
- 基于 JSON 的持久化存储,保存账户和交易记录(每位玩家的独立账户 + 全球 Treasury 账户 + 各公会金库)。
- 玩家命令 (
/money):用于查询余额、向其他玩家付款以及查看自己的交易记录。
- 管理员命令 (
/moneyadmin):用于发放/没收金钱及管理 Treasury。
- 经济元命令 (
/economy):用于获取帮助和实时重载经济配置。
- 金额始终显示为
G/S/C 格式(例如 2G 4S 30C Scales)。
- G键 “Hexarchate Panel” UI(客户端可选):
- 账本标签页:
- 玩家名称及 G/S/C 格式的余额,
- 近期交易记录,格式化为 G/S/C。
- 公会标签页:
- 公会名称及您的公会等级/头衔,
- 各等级的领袖和成员数量,
- 公会金库余额(G/S/C 格式),
- 待处理的邀请数量,
- 快捷按钮用于存款、离开或接受邀请(作为
/guild 命令的前端界面)。
公会与 Vox Imperion
公会系统完全在服务端运行,并使用相同的经济后端。公会数据持久化存储在由模组管理的世界数据文件中(不建议手动编辑)。
公会基础
- 一名玩家同时只能属于一个公会。
- 每个公会包含:
- 唯一的内部 ID 和名称,
- 一位领袖(玩家 UUID),
- 拥有以下 5 种等级之一的成员:
Leader, Officer, Veteran, Member, Recruit,
- 经济系统中的金库账户,
- 可选设置:每日一句/描述 (MOTD)、开放加入标志以及最大成员数。
- 每个公会可以自定义等级的显示头衔:
- 例如
Leader = "High Chancellor",Officer = "First Blade" 等。
公会等级与头衔
内部权限角色:
Leader – 完全控制权。
Officer – 强大的管理权限。
Veteran – 较小的管理权限。
Member – 普通访问权限,无管理权。
Recruit – 试用期/新成员。
每个角色都可以拥有一个公会特定的头衔,由公会领袖设定,以增加风味/RP 体验。在内部,权限基于角色;头衔仅用于显示。
依赖要求
- Minecraft: 1.21.1(如果您是为不同版本构建的,请相应调整)。
- Fabric Loader(与您服务器的版本匹配)。
- Fabric API。
这主要是一个服务端模组。客户端不需要安装它即可使用 /decrees、/money 或 /guild 命令。
在客户端安装模组是可选的,但启用后可以使用 G键 “Hexarchate Panel” 屏幕。
安装方法(服务器所有者)
-
编译或下载模组 JAR 文件(通常在 build/libs/ 目录中)。
-
将 JAR 文件放入服务器的 mods/ 文件夹中。
-
启动服务器一次以生成默认配置文件。
-
编辑以下目录下的配置文件:
config/decrees_of_the_six/council.json
config/decrees_of_the_six/voting_rules.json
config/decrees_of_the_six/economy_config.json
-
编辑配置后,在游戏中使用 /decrees reload 和 /economy reload 命令(需 OP 权限),或者重启服务器。
公会和经济数据存储(账户、交易、公会)由模组自动管理,并在服务器关闭时保存。请勿手动编辑这些文件。
配置
1. council.json
定义全局标志、议会名称、仪式音效以及议会席位。
示例:
{
"councilName": "Hexarchate of Salmon",
"decreesEnabled": true,
"opsOnly": false,
"ceremonySound": "decrees_of_the_six:council_chime",
"seats": [
{
"id": "overseer_regent",
"displayName": "Overseer-Regent"
}
]
}
字段说明:
-
councilName(字符串,可选)
- 您所属议会的友好显示名称(例如
"Hexarchate of Salmon")。
- 用于法令相关的消息和背景文本。
- 可以手动设置或通过
/decrees council create <name> 命令设置。
-
decreesEnabled(布尔值)
true → 所有法令功能正常运行。
false → 禁用法令的创建、开启、投票等功能(玩家会收到提示消息)。
-
opsOnly(布尔值)
false → 仅议会席位持有者可以创建/开启/投票(正常模式)。
true → 仅限管理员(ops)可以创建/开启/删除/对法令进行投票(安全模式 / 紧急覆盖)。
-
ceremonySound(字符串,可选)
- 用于议会仪式广播的音效事件资源位置。
- 示例:若您的
sounds.json 中定义了音效,可使用 "decrees_of_the_six:council_chime"。
- 如果缺失或无效,模组将回退到原版的 Toast 音效。
-
seats(数组) – 每个席位包含:
id – 内部 ID(例如 "overseer_regent")。用于存档和日志记录。
displayName – 聊天窗口中显示的漂亮名称(例如 "Overseer-Regent")。
holderUuid(可选) – 当前持有该席位的玩家的 UUID。
通常建议在游戏中使用 /decrees seat set 命令来分配席位持有者,而不是手动编辑 holderUuid。
/decrees council create <name> 命令将会:
- 将
councilName 设置为 <name>,
- 强制设置
decreesEnabled = true,
- 强制设置
opsOnly = false。
2. voting_rules.json
控制如何评估投票结果。
示例:
{
"minQuorumPercent": 60,
"votingDurationMinutes": 30,
"majorityMode": "SIMPLE",
"tiesPass": false
}
字段说明:
3. 法令历史记录日志
已完成的法令(状态变为 通过 (ENACTED)、拒绝 (REJECTED) 或 取消 (CANCELLED))会被追加到历史日志中,例如:
config/decrees_of_the_six/decrees_history.log
日志通常包含以下内容:
- 时间戳
- 法令 ID 和标题
- 最终状态
- 强制执行人(如果是通过
/decrees decree force 执行的)
- 投票结果的简要摘要
此功能旨在用于赛季记录或世界观设定(Lore)。
4. economy_config.json
控制货币的行为方式及金额显示格式。
示例:
{
"enabled": true,
"currencyName": "Scales",
"goldName": "Gold",
"silverName": "Silver",
"copperName": "Copper",
"copperPerSilver": 10,
"copperPerGold": 100
}
字段说明(概览):
-
enabled(布尔值)
- 若为
false,则经济系统实际上被禁用(命令将无法执行)。
-
currencyName(字符串)
- 基础显示名称,例如
"Scales"、"Crowns"、"Marks"。
-
goldName, silverName, copperName(字符串)
-
copperPerSilver, copperPerGold(整数)
- 换算至最小单位(铜币)的汇率。
- 上述示例 →
1 银币 = 10 铜币, 1 金币 = 100 铜币。
经济数据(账户 + 交易记录 + 公会金库)存储在另一个 JSON 文件中(例如 economy_store.json),位于其他 Decrees 配置文件旁边。请勿手动编辑此文件。
议会席位工作机制
席位在 council.json 的 "seats" 部分定义。
- 一名玩家最多只能持有 一个席位。
- 分配新席位将清除之前持有的任何席位。
席位用于以下目的:
- 确定谁可以创建/开启/删除法令。
- 确定谁拥有投票权(每个席位 = 一票)。
- 在
/decrees decree list active 中显示“你的投票”。
- 驱动加入提醒和“还剩一票”的提示。
管理席位(仅限管理员)
所有席位管理命令仅限管理员使用:
-
/decrees seat list
显示所有席位、其显示名称以及当前持有者(玩家名称或 <empty>)。
-
/decrees seat set <seat_id> <player>
将一名玩家分配到某个席位。
如果该玩家已经持有其他席位,旧的席位将被自动清除。
-
/decrees seat clear <seat_id>
移除席位上的持有者(席位变为空)。
法令生命周期(议会工作流程)
典型的议会会议流程如下:
-
创建法令(草稿 DRAFT)
议会成员运行:
/decrees decree create <title>
这将创建一个状态为 DRAFT 的新法令,并与该成员的席位关联。
-
编辑详情(可选但推荐)
/decrees decree edit title <id> <new_title>
/decrees decree edit description <id> <text>
/decrees decree edit category <id> <category>
/decrees decree edit expiry <id> none
/decrees decree edit expiry <id> <days>
-
开启投票(VOTING)
/decrees decree open <id>
- 如果已配置,则开始投票计时器(
votingDurationMinutes)。
- 通知议会成员,聊天窗口中会出现可点击的
[Yes] [No] [Abstain] 按钮。
-
议会投票
每位席位持有者使用以下命令之一:
/decrees vote <id> yes
/decrees vote <id> no
/decrees vote <id> abstain
或直接点击投票按钮以预填投票命令。
-
自动决议
当
-
查看结果 / 历史记录
/decrees decree results <id> – 详细计数、法定人数信息、计时器状态。
decrees_history.log 中的历史记录日志,用于永久存档。
/decrees history [page] 用于在游戏中分页查看历史记录。
议会仪式与提醒
议会仪式
/decrees council create <name> (仅限 OP)
此命令:
- 将议会名称 (
councilName) 设置为 <name>。
- 启用法令系统 (
decreesEnabled = true)。
- 切换回议会模式 (
opsOnly = false)。
- 广播一条全局消息,宣布议会已召开或重新召开。
- 向所有在线玩家播放配置好的 仪式音效 (
ceremonySound 在 council.json 中)。
- 在执行人位置发射多枚烟花。
请在每个赛季创建议会时仅使用一次;或者,如果您想在更改后以仪式感的方式“重新召集”议会,可再次使用该命令。
加入提醒与一票剩余提示
命令概览
1. 根命令
-
/decrees help
显示简短的命令概览。
-
/decrees reload (仅限 OP)
从磁盘重新加载 council.json 和 voting_rules.json。
-
/decrees status
显示所有当前处于 投票中 (VOTING) 状态的法令的投票情况。
-
/decrees status <id>
显示特定法令的详细投票状态。
-
/decrees history [page]
已完成法令的分页历史记录。
-
/decrees config decreesEnabled on|off (仅限 OP)
全局启用或禁用法令系统。
-
/decrees config opsOnly on|off (仅限 OP)
切换仅限 OP 模式。
-
/decrees config show (仅限 OP)
显示当前系统状态,包括议会名称及您的席位(如有)。
-
/decrees stats seats
显示已创建的法令和投票的按席位统计信息。
-
/decrees stats me
显示您自己席位的统计数据。
-
/decrees stats seat <seat_id>
显示特定席位的统计数据。
2. 议会仪式
/decrees council create <name> (仅限 OP)
召集或重新召集议会,设置议会名称,启用法令,并触发仪式广播 + 可配置的音效 + 烟花效果。
3. 席位管理 (仅限 OP)
/decrees seat list
/decrees seat set <seat_id> <player>
/decrees seat clear <seat_id>
4. 法令管理
-
/decrees decree list [page]
列出所有法令(分页)。
-
/decrees decree list my [page]
列出由您所在席位创建的法令(仅限议会成员),支持分页。
-
/decrees decree list active [page]
列出所有当前处于 投票中 (VOTING) 状态的法令,包括您自己的投票(如果您拥有席位),支持分页。
-
/decrees decree list status <draft|voting|enacted|rejected|cancelled> [page]
按状态筛选法令并列出,支持分页。
-
/decrees decree list category <category>
列出指定类别下的法令。
-
/decrees decree info <id>
显示完整信息(标题、描述、类别、有效期、创建者、票数)。
-
/decrees decree results <id>
显示详细的投票结果、法定人数状态、多数决模式及计时器状态。
-
/decrees decree create <title>
创建一项新的处于 草稿 (DRAFT) 状态的法令(仅限议会成员,或当 opsOnly 为 true 时的 OP)。
-
/decrees decree open <id>
开启一项 草稿 (DRAFT) 状态的法令进行投票。
-
/decrees decree edit title <id> <new_title>
-
/decrees decree edit description <id> <new_description>
-
/decrees decree edit category <id> <new_category>
-
/decrees decree edit expiry <id> none
-
/decrees decree edit expiry <id> <days>
-
/decrees decree delete <id>
删除一项法令(仅限议会成员/OP,取决于配置)。
-
/decrees decree force <id> enacted|rejected|cancelled (仅限 OP)
强制设定法令的最终状态(如果规则出现异常或陷入僵局时的紧急出口)。
5. 投票
/decrees vote <id> yes|no|abstain
对您所在席位的一项当前处于 投票中 (VOTING) 状态的法令进行投票。
(也可以通过点击式的 [Yes] [No] [Abstain] 提示按钮填写。)
6. 经济与货币
玩家可用命令:
-
/money
显示您在 G/S/C 格式下的余额。
-
/money balance <player>
显示其他玩家的余额。
-
/money pay <player> <amount>
向其他玩家转账。
<amount> 支持以下格式:
- 原始铜币整数(例如
150)
- 带单位的字符串,如
1G 5S 20C、2g、10s、50c(不区分大小写)。
-
/money log
显示您最近的交易记录。
管理员 / 国库命令:
-
/moneyadmin grant <player> <amount>
直接向玩家铸造货币。
-
/moneyadmin seize <player> <amount>
从玩家处没收货币。
-
/moneyadmin treasury deposit <amount>
将货币从执行人转移至全局国库。
-
/moneyadmin treasury withdraw <amount>
将货币从全局国库转移至执行人。
-
/moneyadmin log
显示整个系统中最近的交易记录(用于审计)。
经济元命令:
7. 公会与 Vox Imperion
玩家公会命令:
-
/guild create <name>
创建一个新的公会(每位玩家只能创建一个公会)。
您将自动成为 会长 (Leader),并为您创建一个公会国库账户。
-
/guild invite <player>
-
/guild accept
-
/guild deny
邀请其他玩家加入你的公会,并让他们接受或拒绝。
-
/guild leave
离开当前所在的公会。
-
/guild kick <player>
将一名玩家从公会中移除。
-
/guild promote <player>
-
/guild demote <player>
更改成员在 Leader / Officer / Veteran / Member / Recruit(会长/官员/老兵/成员/新兵)中的等级。
(会长可调整所有非会长等级;官员可调整老兵/成员/新兵。)
-
/guild setmotd <text>
设置公会描述/每日公告 (MOTD),用于信息显示屏幕。
-
/guild setopen <true|false>
将公会标记为开放或封闭状态,供未来的开放加入功能使用(目前仅存储,稍后启用)。
-
/guild setmax <number>
可选的成员人数上限(目前仅存储,稍后启用)。
-
/guild settitle <leader|officer|veteran|member|recruit> <title>
为各等级设置公会特定的显示头衔(例如 "High Chancellor"、"First Blade")。
-
/guild balance
显示公会金库余额(以金币/银币/铜币计)。
-
/guild deposit <G> <S> <C>
将你个人账户中的资金存入公会金库。
-
/guild withdraw <G> <S> <C>
仅限会长:从公会金库取款到你的个人账户。
管理员 / Vox Imperion 命令:
-
/vox guild info <name>
检查任意公会:
- 会长信息,
- 按等级划分的成员数量,
- 金库余额,
- 创建日期(如果已记录)。
-
/vox guild setleader <guild> <player>
强制将领导权转移给另一名玩家。
-
/vox guild disband <guild>
强制解散一个公会。
剩余公会资金将被重定向至议会金库(代码中可配置模式)。
-
/vox guild rename <guild> <newName>
用于应对恶作剧/违规行为时的紧急改名。
Vox 命令通过议会权限系统绑定到 Vox Imperion 议会席位(带有 op 回退机制)。
权限摘要
OP(管理员):
- 始终允许使用:
/decrees reload
/decrees council create <name>
/decrees seat ...
/decrees decree force ...
/decrees config ...
/economy reload
- 所有
/moneyadmin ... 命令
- 所有
/vox guild ... 命令
- 当
opsOnly = true 时,即使没有席位,OP 也可以创建/开启/删除/投票表决法令。
议会成员(持有席位的玩家):
- 可以创建、编辑、开启、删除自己的法令
(前提是 decreesEnabled = true 且 opsOnly = false)。
- 可以对处于 VOTING(投票中)状态的任意法令进行投票。
公会成员:
- 可根据其等级使用
/guild 命令:
- 所有人:
/guild balance、/guild deposit、/guild leave、基础信息查询。
- 老兵/官员:额外的邀请权限。
- 会长:完整管理权限 +
/guild withdraw。
普通玩家:
- 通常可以查看法令列表和信息(如果你保持这些命令开放)。
- 如果经济系统已启用,可以使用
/money、/money balance、/money pay、/money log。
- 可以通过
/guild 命令创建和加入公会(受你的服务器规则限制)。
- 除非满足以下条件,否则无法创建、开启、删除或投票表决法令:
- 他们被授予了席位,或者
- 你切换至
opsOnly 模式并将他们设为 OP(不推荐)。
如果 decreesEnabled 为 false,则禁止所有修改法令的命令,即使是 OP 也不例外
(/decrees reload 和 /decrees decree force 除外)。
如果 economy_config.enabled 为 false,所有金钱和公会金库命令都将拒绝执行。
版本控制与更新日志
本模组采用语义化版本控制。
有关每个版本的详细变更列表,请参阅 CHANGELOG.md。
许可证
Decrees of the Six 根据 MIT License 许可。
完整详情请参阅 LICENSE。
Decrees of the Six
A Fabric server-side governance, voting, lightweight economy, and guild system designed for council-style roleplay servers.
The Hexarchate (or any council you define) can create, debate, and vote on decrees in-game, with automatic quorum/majority handling, a season history log, an optional multi-tier currency (Gold/Silver/Copper by default), and player guilds with shared treasuries.
Current version: 0.2.1 (Minecraft 1.21.1, Fabric)
Features
- Council seats defined via JSON (
council.json).
- Named councils with a configurable
councilName used in decree-related messages.
- Council ceremony command to convene or re-convene the council with a server-wide broadcast, configurable chime, and fireworks.
- Configurable council ceremony sound via
ceremonySound in council.json (e.g. decrees_of_the_six:council_chime).
- Decrees with lifecycle: DRAFT → VOTING → ENACTED/REJECTED/CANCELLED.
- Configurable voting rules (quorum, duration, majority mode, ties).
- Global toggles: enable/disable the whole decree system or restrict it to ops.
- Seat tools for assigning council members.
- Join reminder for council members with pending votes.
- One-vote-remaining ping when only one seat is left to vote on a decree.
- Paginated decree lists & in-game history via
/decrees decree list [page] and /decrees history [page].
- Status-filtered decree lists via
/decrees decree list status <draft|voting|enacted|rejected|cancelled> [page].
- “My decrees” & active lists with pagination via
/decrees decree list my [page] and /decrees decree list active [page].
- Seat statistics & status helpers via
/decrees stats ... and /decrees status [id].
- Clean chat formatting & tab completion for decree IDs, seat IDs, and categories.
- Clickable vote hints (buttons
[Yes] [No] [Abstain]) for council members when a decree is opened.
- Text log of final decrees for season history.
- Optional guild system:
- Player-created guilds with ranks (
Leader / Officer / Veteran / Member / Recruit),
- Per-guild customizable rank titles,
- Each guild has its own Treasury account in the same economy,
- Vox Imperion tools for inspecting and moderating guilds.
- Optional Hexarchate Panel UI (G-key) (if the client also loads the mod) with:
- A Ledger tab for player balance and transactions,
- A Guild tab showing guild name, rank, member counts, and guild Treasury balance, plus quick actions (deposit / leave / accept invites).
- All interaction done in-game via
/decrees, /money, /economy, /guild, and /vox guild commands.
Economy / Money System
- Optional single currency with three denominations (default: Gold, Silver, Copper Scales).
- Configurable names and conversion ratios via
economy_config.json.
- Persistent JSON-backed store of accounts and transactions (per-player account + global Treasury account + guild Treasuries).
- Player commands (
/money) for checking balances, paying other players, and viewing your own transaction log.
- Admin commands (
/moneyadmin) for granting / seizing money and managing the Treasury.
- Economy meta commands (
/economy) for help and live reloading of economy config.
- Amounts are always shown in
G/S/C form (e.g. 2G 4S 30C Scales).
- G-key “Hexarchate Panel” UI (client-side optional):
- Ledger tab:
- Player name and balance in G/S/C,
- Recent transactions formatted in G/S/C.
- Guild tab:
- Guild name and your guild rank/title,
- Leader and member counts per rank,
- Guild Treasury balance in G/S/C,
- Pending invite count,
- Quick buttons to deposit, leave, or accept invites (front-end to
/guild commands).
Guilds & Vox Imperion
The guild system is fully server-side and uses the same economy backend. Guilds are stored persistently in a world data file managed by the mod (not meant to be edited manually).
Guild Basics
- A player can be a member of at most one guild at a time.
- Each guild has:
- A unique internal ID and a name,
- A Leader (player UUID),
- Members with one of 5 ranks:
Leader, Officer, Veteran, Member, Recruit,
- A Treasury account in the economy system,
- Optional settings: MOTD/description, open-join flag, and max members.
- Each guild can customize the display titles for ranks:
- e.g.
Leader = "High Chancellor", Officer = "First Blade", etc.
Guild Ranks & Titles
Internal permission roles:
Leader – full control.
Officer – strong management powers.
Veteran – minor management powers.
Member – normal access, no management.
Recruit – probationary / newcomer.
Each role can have a guild-specific title, set by the guild leader, for flavour/RP. Internally, permissions are based on the roles; titles are just display.
Requirements
- Minecraft: 1.21.1 (adjust if you built for a different version).
- Fabric Loader (matching your server version).
- Fabric API.
This is primarily a server-side mod. Clients do not need to install it to use /decrees, /money, or /guild commands.
Installing the mod on the client is optional but enables the G-key “Hexarchate Panel” screen.
Installation (Server Owners)
-
Build or download the mod JAR (usually in build/libs/).
-
Place the JAR into your server's mods/ folder.
-
Start the server once to generate default config files.
-
Edit the config files under:
config/decrees_of_the_six/council.json
config/decrees_of_the_six/voting_rules.json
config/decrees_of_the_six/economy_config.json
-
Use /decrees reload and /economy reload in-game (as an op) after editing configs, or restart the server.
Guild and economy data stores (accounts, transactions, guilds) are managed automatically by the mod and saved on server shutdown. They should not be edited by hand.
Configuration
1. council.json
Defines global flags, the council name, ceremony sound, and council seats.
Example:
{
"councilName": "Hexarchate of Salmon",
"decreesEnabled": true,
"opsOnly": false,
"ceremonySound": "decrees_of_the_six:council_chime",
"seats": [
{
"id": "overseer_regent",
"displayName": "Overseer-Regent"
}
]
}
Fields:
-
councilName (string, optional)
- Friendly display name of your council (e.g.
"Hexarchate of Salmon").
- Used in decree-related messages and flavour text.
- Can be set manually or via
/decrees council create <name>.
-
decreesEnabled (boolean)
true → all decree features work normally.
false → decree creation, opening, voting, etc. are disabled (players get a message).
-
opsOnly (boolean)
false → only council seats can create/open/vote (normal mode).
true → only ops can create/open/delete/vote on decrees (safety mode / emergency override).
-
ceremonySound (string, optional)
- Resource location of the sound event used for the council ceremony broadcast.
- Example:
"decrees_of_the_six:council_chime" for a sound defined in your sounds.json.
- If missing or invalid, the mod falls back to a vanilla toast sound.
-
seats (array) – each seat:
id – internal ID (e.g. "overseer_regent"). Used in saves & logs.
displayName – pretty name shown in chat (e.g. "Overseer-Regent").
holderUuid (optional) – UUID of the player currently holding that seat.
You typically assign seat holders in-game using /decrees seat set instead of editing holderUuid by hand.
/decrees council create <name> will:
- Set
councilName to <name>,
- Force
decreesEnabled = true,
- Force
opsOnly = false.
2. voting_rules.json
Controls how votes are evaluated.
Example:
{
"minQuorumPercent": 60,
"votingDurationMinutes": 30,
"majorityMode": "SIMPLE",
"tiesPass": false
}
Fields:
-
minQuorumPercent
Minimum % of active seats that must vote for the decree to be valid.
Example: 60 with 5 active seats → at least 3 votes needed.
-
votingDurationMinutes
How long voting stays open once a decree is opened.
0 or less → no time limit (will resolve when everyone votes or via force).
-
majorityMode
"SIMPLE" → more YES than NO and at least half + 1 of the votes.
"TWO_THIRDS" → at least 2/3 of the votes must be YES.
-
tiesPass
true → YES = NO counts as ENACTED.
false → YES = NO counts as REJECTED.
3. Decree History Log
Finalised decrees (status becomes ENACTED, REJECTED, or CANCELLED) are appended to a history log, e.g.:
config/decrees_of_the_six/decrees_history.log
The log typically includes:
- Timestamp
- Decree ID and title
- Final status
- Who forced it (if done via
/decrees decree force)
- A compact summary of votes
This is meant for season records / lore.
4. economy_config.json
Controls how the currency behaves and how amounts are displayed.
Example:
{
"enabled": true,
"currencyName": "Scales",
"goldName": "Gold",
"silverName": "Silver",
"copperName": "Copper",
"copperPerSilver": 10,
"copperPerGold": 100
}
Fields (high level):
-
enabled (boolean)
- If
false, the money system is effectively disabled (commands will refuse to run).
-
currencyName (string)
- Base display name, e.g.
"Scales", "Crowns", "Marks".
-
goldName, silverName, copperName (strings)
- Display names for each denomination.
- Used in chat and UI.
-
copperPerSilver, copperPerGold (ints)
- Conversion rates to the smallest unit (copper).
- Example above →
1 Silver = 10 Copper, 1 Gold = 100 Copper.
Economy data (accounts + transactions + guild Treasuries) is stored in a separate JSON file (e.g. economy_store.json) next to your other Decrees config. It is not meant to be edited by hand.
How Council Seats Work
Seats are defined in council.json under "seats".
- A player can hold at most one seat.
- Assigning a new seat will clear any previous one.
Seats are used to:
- Determine who may create/open/delete decrees.
- Determine who may vote (each seat = one vote).
- Show “your vote” in
/decrees decree list active.
- Drive join reminders and “one vote left” pings.
Managing Seats (Ops Only)
All seat management commands are op-only:
-
/decrees seat list
Shows all seats, their display names, and current holder (player name or <empty>).
-
/decrees seat set <seat_id> <player>
Assigns a player to a seat.
If the player already holds a different seat, that old seat is cleared automatically.
-
/decrees seat clear <seat_id>
Removes the holder from a seat (seat becomes empty).
Decree Lifecycle (Council Workflow)
Typical flow for a council session:
-
Create a decree (DRAFT)
A council member runs:
/decrees decree create <title>
This creates a new decree in DRAFT status, linked to their seat.
-
Edit details (optional but recommended)
/decrees decree edit title <id> <new_title>
/decrees decree edit description <id> <text>
/decrees decree edit category <id> <category>
/decrees decree edit expiry <id> none
/decrees decree edit expiry <id> <days>
-
Open for voting (VOTING)
/decrees decree open <id>
- Starts the voting timer (
votingDurationMinutes) if configured.
- Notifies council members, including clickable
[Yes] [No] [Abstain] buttons in chat.
-
Council votes
Each council seat holder uses:
/decrees vote <id> yes
/decrees vote <id> no
/decrees vote <id> abstain
or clicks the vote buttons to prefill the vote command.
-
Automatic resolution
When:
- Quorum is reached and
- All active seats have voted or voting time has expired,
the system automatically sets the decree to ENACTED, REJECTED, or (if forced) CANCELLED according to the rules in voting_rules.json, then logs the change and notifies the council.
-
Review results / history
/decrees decree results <id> – detailed counts, quorum info, timer state.
- History log in
decrees_history.log for permanent record.
/decrees history [page] for an in-game, paginated history view.
Council Ceremony & Reminders
Council Ceremony
/decrees council create <name> (op only)
This command:
- Sets the council name (
councilName) to <name>.
- Enables the decree system (
decreesEnabled = true).
- Switches back to council mode (
opsOnly = false).
- Broadcasts a global message announcing that the council has convened or re-convened.
- Plays the configured ceremony sound (
ceremonySound in council.json) to all online players.
- Launches multiple fireworks at the executor’s position.
Use this once per season when the council is founded, or again if you want to ceremonially “re-convene” it after changes.
Join Reminder & One-Vote-Remaining Ping
-
When a council member joins, they get a reminder if they have pending votes:
- Shows how many decrees in VOTING still lack their vote.
- Lists up to 5 decree IDs (e.g.
#3, #7, #12...).
-
When only one active seat is left to vote on a decree, the server broadcasts a message indicating which seat is still pending.
Commands Overview
1. Root
-
/decrees help
Show a short command overview.
-
/decrees reload (op only)
Reload council.json and voting_rules.json from disk.
-
/decrees status
Show voting status for all decrees currently in VOTING.
-
/decrees status <id>
Show detailed voting status for a specific decree.
-
/decrees history [page]
Paginated history of completed decrees.
-
/decrees config decreesEnabled on|off (op only)
Enable or disable the decrees system globally.
-
/decrees config opsOnly on|off (op only)
Toggle ops-only mode.
-
/decrees config show (op only)
Show current system status, including council name and your seat (if any).
-
/decrees stats seats
Show per-seat statistics for created decrees and votes.
-
/decrees stats me
Show statistics for your own seat.
-
/decrees stats seat <seat_id>
Show statistics for a specific seat.
2. Council Ceremony
/decrees council create <name> (op only)
Convene or re-convene the council, set the council name, enable decrees, and trigger the ceremony broadcast + configurable sound + fireworks.
3. Seats (Ops Only)
/decrees seat list
/decrees seat set <seat_id> <player>
/decrees seat clear <seat_id>
4. Decree Management
-
/decrees decree list [page]
List all decrees (paginated).
-
/decrees decree list my [page]
List decrees created by your seat (council members only), with pagination.
-
/decrees decree list active [page]
List all decrees currently in VOTING, including your own vote if you hold a seat, with pagination.
-
/decrees decree list status <draft|voting|enacted|rejected|cancelled> [page]
List decrees filtered by status, with pagination.
-
/decrees decree list category <category>
List decrees in a given category.
-
/decrees decree info <id>
Show full info (title, description, category, expiry, creator, votes).
-
/decrees decree results <id>
Show detailed vote results, quorum status, majority mode, and timer state.
-
/decrees decree create <title>
Create a new decree in DRAFT (council only, or ops if opsOnly is true).
-
/decrees decree open <id>
Open a DRAFT decree for voting.
-
/decrees decree edit title <id> <new_title>
-
/decrees decree edit description <id> <new_description>
-
/decrees decree edit category <id> <new_category>
-
/decrees decree edit expiry <id> none
-
/decrees decree edit expiry <id> <days>
-
/decrees decree delete <id>
Delete a decree (council only / ops depending on config).
-
/decrees decree force <id> enacted|rejected|cancelled (op only)
Force the final status of a decree (escape hatch if rules misbehave or get stuck).
5. Voting
/decrees vote <id> yes|no|abstain
Cast your seat’s vote on a decree currently in VOTING.
(Can also be filled in via the clickable [Yes] [No] [Abstain] hints.)
6. Economy & Money
Player-facing commands:
-
/money
Show your own balance in G/S/C form.
-
/money balance <player>
Show another player’s balance.
-
/money pay <player> <amount>
Pay another player.
<amount> supports:
- Raw copper integer (e.g.
150)
- Denominated strings such as
1G 5S 20C, 2g, 10s, 50c (case-insensitive).
-
/money log
Show your recent transactions.
Admin / treasury commands:
-
/moneyadmin grant <player> <amount>
Mint money directly to a player.
-
/moneyadmin seize <player> <amount>
Remove money from a player.
-
/moneyadmin treasury deposit <amount>
Move money from the executor to the global Treasury.
-
/moneyadmin treasury withdraw <amount>
Move money from the global Treasury to the executor.
-
/moneyadmin log
Show recent transactions across the whole system (for audit).
Economy meta:
-
/economy help
Overview of all money and treasury commands, plus a short explanation of denominations.
-
/economy reload (op only)
Reload economy_config.json from disk.
7. Guilds & Vox Imperion
Player guild commands:
-
/guild create <name>
Create a new guild (one guild per player).
You become the Leader and a guild Treasury account is created.
-
/guild invite <player>
-
/guild accept
-
/guild deny
Invite other players to your guild and let them accept or deny.
-
/guild leave
Leave your current guild.
- Leaders must transfer leadership or disband instead of leaving.
-
/guild kick <player>
Remove a player from the guild.
- Leader and Officers may kick lower-rank members according to rank rules.
-
/guild promote <player>
-
/guild demote <player>
Change a member’s rank within Leader / Officer / Veteran / Member / Recruit.
(Leader can adjust all non-leader ranks; Officers can adjust Veteran/Member/Recruit.)
-
/guild setmotd <text>
Set a guild description / MOTD for info screens.
-
/guild setopen <true|false>
Mark the guild as open or closed for future open-join features (stored now, used later).
-
/guild setmax <number>
Optional member cap (stored now, used later).
-
/guild settitle <leader|officer|veteran|member|recruit> <title>
Set guild-specific display titles for ranks (e.g. "High Chancellor", "First Blade").
-
/guild balance
Show the guild Treasury balance in G/S/C.
-
/guild deposit <G> <S> <C>
Deposit money from your personal account into the guild Treasury.
-
/guild withdraw <G> <S> <C>
Leader-only: withdraw money from the guild Treasury to your personal account.
Admin / Vox Imperion commands:
-
/vox guild info <name>
Inspect any guild:
- Leader,
- Member counts by rank,
- Treasury balance,
- Creation date (if tracked).
-
/vox guild setleader <guild> <player>
Force-transfer leadership to another player.
-
/vox guild disband <guild>
Force disband a guild.
Remaining guild funds are redirected to the Council Treasury (configurable pattern in code).
-
/vox guild rename <guild> <newName>
Emergency rename for trolling / violations.
Vox commands are bound to the Vox Imperion council seat via the council permission system (with an op fallback).
Permissions Summary
Ops:
- Always allowed to use:
/decrees reload
/decrees council create <name>
/decrees seat ...
/decrees decree force ...
/decrees config ...
/economy reload
- All
/moneyadmin ... commands
- All
/vox guild ... commands
- When
opsOnly = true, ops can also create/open/delete/vote on decrees even without a seat.
Council members (players who hold a seat):
- Can create, edit, open, delete their decrees
(assuming decreesEnabled = true and opsOnly = false).
- Can vote on any decree in VOTING.
Guild members:
- May use
/guild commands according to their rank:
- Everyone:
/guild balance, /guild deposit, /guild leave, basic info.
- Veterans/Officers: extra invite powers.
- Leader: full management +
/guild withdraw.
Regular players:
- Can typically view decree lists and info (if you keep those commands open).
- Can use
/money, /money balance, /money pay, /money log if the economy is enabled.
- Can create and join guilds via
/guild commands (subject to your server rules).
- Cannot create, open, delete, or vote on decrees unless:
- they are given a seat, or
- you switch to
opsOnly and make them ops (not recommended).
If decreesEnabled is false, mutating decree commands are blocked even for ops
(except /decrees reload and /decrees decree force).
If economy_config.enabled is false, all money and guild Treasury commands will refuse to run.
Versioning & Changelog
This mod uses semantic versioning.
See CHANGELOG.md for a detailed list of changes per version.
License
Decrees of the Six is licensed under the MIT License.
See LICENSE for full details.
评论 0
登录后参与评分
还没有评论,来抢沙发吧