
TownyLaws 是一个轻量级的 TownyAdvanced 插件,允许城镇和国家创建自己的法律列表。
玩家可以直接在聊天栏中查看自己所在城镇和国家的法律,而市长、助理、国王和管理员则可以通过简单的命令来管理这些法律。
无需数据库支持。法律存储在简单的 YAML 文件中,可以在不重启服务器的情况下重新加载。

• 城镇法律和国家级法律
• 使用 /town laws、/nation laws 或 /townylaws 查看法律
• 市长和助理可以管理城镇法律
• 国王和助理可以管理国家法律
• 管理员命令可用于管理任何城镇或国家
• 可配置的法律数量上限、每页显示数量和单条法律最大长度
• 可选功能:加入城镇或国家时自动显示法律
• 自定义消息
• 简单的 YAML 存储方式

/town laws - 查看你的城镇法律
/town laws add <law> - 添加一条城镇法律
/town laws remove <number> - 删除指定编号的城镇法律
/town laws clear - 清空城镇法律
/nation laws - 查看你的国家法律
/nation laws add <law> - 添加一条国家法律
/nation laws remove <number> - 删除指定编号的国家法律
/nation laws clear - 清空国家法律
/townylaws - 查看你的城镇和国家法律
/townylaws reload - 重新加载插件文件
/townylaws town <town> - 查看或管理其他城镇的法律
/townylaws nation <nation> - 查看或管理其他国家的法律

townylaws.town.manage
允许城镇市长和助理管理城镇法律。
默认值:true
townylaws.nation.manage
允许国家国王和助理管理国家法律。
默认值:true
townylaws.admin
允许管理员重新加载文件、管理任意城镇或国家,并绕过常规的管理权限检查。
默认值:op(即拥有 op 权限的玩家)

TownyLaws 包含一个简单的配置文件,你可以在其中更改以下内容:
• 每个城镇的最大法律数量
• 每个国家的最大法律数量
• 每页显示的法律数量
• 单条法律的最大长度
• 加入城镇或国家时是否显示法律
• 颜色代码和格式代码的支持
• 插件消息和法律显示的格式

- 下载 TownyLaws。
- 将 jar 文件放入服务器的 plugins 文件夹中。
- 确保已安装 TownyAdvanced。
- 重启服务器。
- 根据需要编辑配置文件。
- 修改后运行 /townylaws reload 以重新加载配置。

TownyLaws is a lightweight TownyAdvanced addon that lets towns and nations create their own law lists.
Players can view their town and nation laws directly in chat, while mayors, assistants, kings, and admins can manage laws with simple commands.
No database required. Laws are stored in simple YAML files and can be reloaded without restarting the server.

• Town laws and nation laws
• View laws with /town laws, /nation laws, or /townylaws
• Mayors and assistants can manage town laws
• Kings and assistants can manage nation laws
• Admin commands for managing any town or nation
• Configurable law limits, page size, and max law length
• Optional law display when joining a town or nation
• Customizable messages
• Simple YAML storage

/town laws - View your town's laws
/town laws add <law> - Add a town law
/town laws remove <number> - Remove a town law
/town laws clear - Clear town laws
/nation laws - View your nation's laws
/nation laws add <law> - Add a nation law
/nation laws remove <number> - Remove a nation law
/nation laws clear - Clear nation laws
/townylaws - View your town and nation laws
/townylaws reload - Reload the plugin files
/townylaws town <town> - View or manage another town's laws
/townylaws nation <nation> - View or manage another nation's laws

townylaws.town.manage
Allows town mayors and assistants to manage town laws.
Default: true
townylaws.nation.manage
Allows nation kings and assistants to manage nation laws.
Default: true
townylaws.admin
Allows admins to reload files, manage any town or nation, and bypass normal management checks.
Default: op

TownyLaws includes a simple config file where you can change:
• Maximum laws per town
• Maximum laws per nation
• Laws shown per page
• Maximum law length
• Whether laws appear when joining a town or nation
• Color and format code support
• Plugin messages and law display format

- Download TownyLaws.
- Place the jar file in your server's plugins folder.
- Make sure TownyAdvanced is installed.
- Restart your server.
- Edit the config if needed.
- Run /townylaws reload after making changes.
评论 0
登录后参与评分
还没有评论,来抢沙发吧