跳到正文

Rulebook

作者:Libreh

Rules screening mod

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

Rulebook

A server-side rules screening mod for Fabric.

Supports Placeholder API, Simplified Text Format, and per player permissions with LuckPerms.

Accept

Accept

Reject

Reject

Clarifications

You accept the rules by viewing all pages and closing the rulebook.
You can close by clicking the Done or Take Book buttons, or pressing Escape on your keyboard.
The Take Book button will give you an actual in-game rulebook item.

Commands (and permissions):

  • /rulebook and /rules – Displays the rules in chat (rulebook.main, available by default)
  • /rulebook open and /rules open – Displays the rules as a book (rulebook.main, available by default)
  • /rulebook reload – Reloads configuration (requires rulebook.reload)
  • /rulebook update – Resets all players’ rule status and kicks them, forcing them to accept the rules again (requires rulebook.update)
  • /rulebook update <players> – Same as above but only for targeted players (requires rulebook.update)
  • /rulebook update offline – Same as above but only for offline players (requires rulebook.update)
  • /rulebook accept – Used for accepting the rules (rulebook.main, available by default)

Configuration

// New lines can be added with `\n`!
{
  // Header at the top of each book page and at the top of the rules command
  "rules_header": "Rules Header\n",
  // Rule formatting, supports the variables %rule_number%, %rule_title%, %rule_description%
  "rule_schema": "%rule_number%. %rule_title%\n%rule_description%\n",
  // Displayed at the last page
  "final_page": "By closing the rulebook <bold>%player:name%</bold> you hereby agree to <underline>all the rules</underline>",
  // Messages for when a player is kicked
  "kick_messages": {
    // Player hasn't visited all pages
    "didnt_read": "<red>You didn't read all the rules!</red>",
    // Player's rules have been updated
    "updated_rules": "<yellow>Rules updated, please reconnect</yellow>"
  },
  // All the different rules, each with a title and description
  "rules": [
    {
      "title": "title",
      "description": "description"
    },
    {
      "title": "more title",
      "description": "more description"
    }
  ],
  // List of players that have accepted
  "accepted_players": []
}

Credits

常见问题

Rulebook 支持哪些 Minecraft 版本?

Rulebook 支持 Minecraft Java 版 1.21.4–1.21.7,共 4 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Rulebook 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

Libreh 的其他作品

查看全部 →