Traveler's Journal
Traveler's Journal 可以在玩家首次加入服务器时为其提供一本书,具体内容由服务器管理员决定:可以是欢迎指南、服务器规则,也可以是冒险的开端。
功能特性
- 每次使用时都会显示最新的文本内容
- 支持多个命名的日志簿,可在玩家首次加入时自动发放,或仅通过命令发放
- Minecraft 1.21.6 及以上版本内置游戏内日志管理器,可预览每个日志的每一页
- Minecraft 1.20 至 1.21.5 版本使用文件编写日志,并配有逐步操作指南
- 纯服务端运行:玩家无需安装客户端模组
单个 .jar 文件适用于 Minecraft 1.20 至 1.20.4、1.21 至 1.21.11 以及 26.1 至 26.3。Fabric 加载器会根据你的服务器版本加载对应的构建,因此当服务器切换到其他受支持的版本时,无需更换同一个 .jar 文件。该模组需要 Fabric Loader 0.16.10 或更高版本以及 Fabric API。不支持 Minecraft 1.20.5 和 1.20.6。
从任何早期版本升级时,你的设置、文本内容、加入列表以及玩家已持有的日志簿都会保留。
配置
操作员(Operators)使用 /journals 命令以及 config/travelers-journal/ 目录下的文件来管理日志簿。这些命令也可在服务器控制台中执行,且 /journals 是 /travelers_journal 的简写形式。除非 config.txt 中指定了其他值,否则操作员需要至少 2 级权限。
/journals:在 1.21.6 及以上版本中,打开游戏内的日志管理器;在其他版本中,列出可用命令。
/journals list:显示所有日志簿及其是否会在玩家首次加入时自动发放。
/journals give <players> [journal]:向每位指定玩家发放一本日志簿,默认名为 default,除非指定了其他名称。如果玩家背包已满,日志簿会掉落至其脚下。
/journals create <id>:在 journals/<id>/ 目录下创建一个新的日志簿。ID 是一个简短的名称,例如 rules:命令使用该 ID 命名日志簿,它同时也是文件夹的名称。ID 仅允许使用小写字母、数字和连字符 -,长度不超过 32 个字符。书籍标题需单独设置。
/journals delete <journal>:将日志簿的文件夹移至 backups/journals/<id>/。玩家已持有的副本仍作为已签名的书本保留。default 日志簿不可删除。
/journals edit [journal]:在 1.21.6 及以上版本中,在游戏编辑器中打开该日志簿;在其他版本中,返回其文本文件和设置文件的名称。
/journals reload:重新读取所有日志簿的文件。每次使用时,每本副本都会显示新的文本内容。
若在不满足参数要求的情况下输入 create、give 或 delete,系统将显示带有示例的使用帮助信息。
在 1.21.6 及以上版本中,/journals 会打开管理器,该管理器基于 Minecraft 自身的对话框屏幕构建,因此玩家无需安装客户端模组。主界面按标题列出所有日志簿,并提供“Create journal”(创建日志簿)和“Reload from files”(从文件重载)选项。日志簿编辑器包含书籍标题(最多 32 个字符)、作者、“Give on first join”(首次加入时发放)开关,以及一个包含文本的单框区域,使用的标记语法与文件中的相同。保存操作会将更改写入文件,并将之前的文本内容备份为旁边的 .bak 文件。“Give to me”(给我一本)会将副本放入你的背包,“Delete journal”(删除日志簿)会先进行确认,然后将日志簿文件夹移至备份目录。服务器会对每次按钮点击进行权限校验,因此只有达到配置级别的操作员才能进行修改。


基本设置 (config.txt)
title=Traveler's Journal
author=Server
give_on_join=true
operator_level=2
debug_logging=false
legacy_titles=Traveller's Journal,Travelers Journal
title、author 和 give_on_join 属于 default 日志簿的设置。operator_level(0 到 4)定义了谁可以使用命令和管理器,修改后需执行 /journals reload 生效。
日志簿内容
每个服务器都预置了 default 日志簿。其文本内容为 config/travelers-journal/travelers_journal.md,而标题、作者和 give_on_join 设置在 config.txt 中。

在 1.20 至 1.21.5 版本中(无游戏内管理器),可通过文件方式添加日志簿:
- 运行
/journals create rules。这将创建 config/travelers-journal/journals/rules/ 目录。
- 在
journal.md 中编写文本,并在 journal.txt 中设置标题、作者和 give_on_join。
- 运行
/journals reload,然后运行 /journals give @s rules 以阅读你自己的副本。
完整指南请参阅 README。在 1.21.6 及以上版本中,/journals 会打开管理器,可在游戏内创建和编辑日志簿。
文本支持以下格式:
- 粗体
**text**、斜体 *text* 和下划线 _text_
- 标题:以
# 开头的行会按原样显示,因此请手动加粗,例如 **Rules**
- 颜色:
<color>text<>,其中颜色可选值为 black、dark_blue、dark_green、dark_aqua、dark_red、dark_purple、gold、gray、dark_gray、blue、green、aqua、red、light_purple、yellow 或 white
- 分页符:
[page] 开始新页面,当页面填满书的 14 行时也会自动结束当前页
预览你的日志簿
在 Minecraft 1.21.6 及以上版本中,输入 /journals,从列表中选择一本日志簿,并在编辑器中点击 Preview(预览)。它将显示玩家阅读时的页面效果,且不会保存更改。
1.21.6 之前版本没有预览功能。运行 /journals give @s <journal> 并阅读你自己的副本,即可查看分页位置。


支持
加入 GBTI Network!
GBTI Network 是一个会员制社区:
- 独家开发工具与资源
- 私有仓库与代码库
- Discord 协作社区
- 会员名录展示,彰显你的作品
- 合作机会与项目伙伴关系
- 新功能与工具的抢先体验
通过成为 GBTI Network 会员 来支持我们的工作。
其他支持方式:
链接
许可证
本项目遵循 GNU General Public License v3.0 许可协议
Traveler's Journal
Traveler's Journal can give each new player a book when they first join, and the server admin decides what it says: welcome instructions, server rules, or the start of an adventure.
Features
- Every copy shows the latest text the next time it is used
- Several named journals, each given to new players on first join or only by command
- An in-game journal manager on Minecraft 1.21.6 and later, with a preview of each journal's pages
- On 1.20 to 1.21.5, journals written as files, with a step-by-step guide
- Server-side only: players need no client mod
One jar runs on Minecraft 1.20 to 1.20.4, 1.21 to 1.21.11 and 26.1 to 26.3. Fabric loads the build that matches your server, so a server that moves to another supported version keeps the same jar. It needs Fabric Loader 0.16.10 or newer and Fabric API. Minecraft 1.20.5 and 1.20.6 are not supported.
Upgrading from any earlier release keeps your settings, your text, your join list and the journals players already carry.
Configuration
Operators manage journals with the /journals commands and the files in config/travelers-journal/. The commands also work from the server console, and /journals is a shorter name for /travelers_journal. Operators need level 2 unless operator_level in config.txt says otherwise.
/journals: on 1.21.6 and later, opens the journal manager in game. Elsewhere, lists these commands.
/journals list: shows every journal, and whether it goes to new players.
/journals give <players> [journal]: gives each player a journal, default unless one is named. A player with a full inventory finds it at their feet.
/journals create <id>: adds a journal in journals/<id>/. The id is a short name such as rules: the commands use it to name the journal, and it is the folder's name. Ids use lower-case letters, digits and -, up to 32 characters. The book's title is set separately.
/journals delete <journal>: moves a journal's folder to backups/journals/<id>/. Copies players already carry stay as signed books. default cannot be deleted.
/journals edit [journal]: on 1.21.6 and later, opens the journal in the editor. Elsewhere, names its text and settings files.
/journals reload: reads every journal's files again. Each copy shows the new text the next time it is used.
Typed without what it needs, create, give or delete shows its usage with an example.
On 1.21.6 and later, /journals opens the manager, built from Minecraft's own dialog screens, so players need no client mod. Its hub lists every journal by title, plus Create journal and Reload from files. A journal's editor holds the book title (up to 32 characters), the author, a "Give on first join" switch and the text in one box, in the same markup as the files. Save writes the files and keeps the previous text as a .bak file beside them. Give to me puts a copy in your inventory, and Delete journal asks first, then moves the journal's folder to a backup. The server checks every button press again, so only operators at the configured level can change anything.


Basic Settings (config.txt)
title=Traveler's Journal
author=Server
give_on_join=true
operator_level=2
debug_logging=false
legacy_titles=Traveller's Journal,Travelers Journal
title, author and give_on_join belong to the default journal. operator_level (0 to 4) sets who may use the commands and the manager, and /journals reload applies a change.
Journal Content
Every server starts with the default journal. Its text is config/travelers-journal/travelers_journal.md, and its title, author and give_on_join are in config.txt.

On 1.20 to 1.21.5, where there is no in-game manager, add a journal by file:
- Run
/journals create rules. It makes config/travelers-journal/journals/rules/.
- Write the text in
journal.md, and the title, author and give_on_join in journal.txt.
- Run
/journals reload, then /journals give @s rules to read your copy.
The full guide is in the README. On 1.21.6 and later, /journals opens the manager, which creates and edits journals in game.
The text supports:
- Bold
**text**, italic *text* and underline _text_
- Headings: a line starting with
# shows as typed, so make a heading bold, such as **Rules**
- Colors:
<color>text<>, where the color is black, dark_blue, dark_green, dark_aqua, dark_red, dark_purple, gold, gray, dark_gray, blue, green, aqua, red, light_purple, yellow or white
- Page breaks:
[page] starts a new page, and a page also ends when it fills the book's 14 lines
Preview Your Journal
On Minecraft 1.21.6 and later, type /journals, pick a journal from the list and press Preview in its editor. It shows the pages as players will read them, without saving.
Before 1.21.6 there is no preview. Run /journals give @s <journal> and read your own copy to see where the pages break.


Support
Join the GBTI Network!
The GBTI Network is a membership community:
- Exclusive development tools and resources
- Private repositories and code libraries
- Discord community for collaboration
- Member directory listing to showcase your work
- Co-op opportunities and project partnerships
- Early access to new features and tools
Support our work by becoming a GBTI Network member.
Other ways to Support:
Links
License
This project is licensed under the GNU General Public License v3.0
评论 0
登录后参与评分
还没有评论,来抢沙发吧