工作原理
通过这款服务端模组,你可以自定义 Minecraft 服务器的加入和离开消息。
它支持……
- Minecraft 颜色代码(例如
&l表示 加粗,&e表示黄色) - HEX 颜色代码(用法:在消息中使用
&#RRGGBB) - 使用命令进行游戏内自定义,或使用
betterjoinmessages.json文件进行服务端配置 - 在自定义消息中使用多种占位符(详见下文)
- 在可配置的范围内进行全局和本地广播
- 启用、禁用和自定义首次加入消息,欢迎新玩家,并在他们首次加入时向所有人发送特殊消息,之后切换为常规的加入消息
配置
配置文件位于 config/betterjoinmessages.json (fabric)。
| 选项 | 描述 | 默认值 |
|---|---|---|
joinMessage |
玩家加入时发送的自定义消息 | &e{player} joined the game |
leaveMessage |
玩家离开时发送的自定义消息 | &e{player} left the game |
firstJoinMessage |
玩家首次加入服务器时发送的自定义消息 | §a{player} joined the game for the first time!" |
firstJoinEnabled |
启用或禁用首次加入消息 | true |
sendGlobal |
确定消息是否应全局可见 | true |
distance |
如果 sendGlobal 设置为 false,只有在此范围内的玩家才能看到消息 |
50.0 |
将消息留空或设置为空白字符以完全禁用广播。
命令
你可以通过以下游戏内命令自定义所有内容:
要求: 所有
/bjm命令都需要操作员权限等级 2 (GAMEMASTERS/ OP) 或服务器控制台访问权限。
| 命令 | 参数 | 描述 |
|---|---|---|
/bjm join |
<message> |
更新常规玩家加入消息模板。 |
/bjm leave |
<message> |
更新离开/断开连接消息模板。 |
/bjm firstjoin |
<message> |
更新玩家首次加入时发送的消息模板。 |
/bjm firstjoinToggle |
<true/false> |
启用 (true) 或禁用 (false) 首次加入消息。 |
/bjm global |
<true/false> |
在全局广播模式和基于距离/范围的聊天模式之间切换。 |
/bjm distance |
<distance> |
当全局模式禁用时,设置广播半径(以方块为单位)。 |
/bjm seenplayersReset |
(无) | 清除已记录玩家的所有列表(所有玩家在下次登录时将触发首次加入消息)。 |
/bjm seenplayersReset |
player/UUID |
从已见玩家注册表中移除特定玩家(通过用户名或 UUID)。 |
/bjm status |
(无) | 向调用者显示格式化的配置概览和实时消息预览。 |
/bjm reload |
(无) | 从磁盘重新加载配置文件 (betterjoinmessages.json)。 |
占位符与格式
占位符
{player}→ 原始 Minecraft 账户名称(记分板名称)。{displayname}→ 格式化后的玩家显示名称(支持团队前缀、后缀和昵称模组)。{onlineplayer}→ 服务器上当前在线的玩家数量。{maxplayers}→ 服务器上的最大玩家槽位。{uniqueplayers}→ 曾经加入过服务器的玩家总数。
格式
- RGB 十六进制颜色:
&#RRGGBB(例如7FFFF,&#FF5500) - 传统颜色:
&9,&a - 文本样式:
&l(加粗),&o(斜体),&n(下划线),&m(删除线),&k(混淆) - 重置代码:
&r
展示
本视频展示了游戏内配置和自定义消息的效果。
注意:视频中显示的命令来自 1.2.0 版本。1.3.0 中添加的所有功能(新占位符、HEX 颜色、新命令等)并未展示!
如果你需要我的模组帮助,例如关于配置方面的,请加入我的 Discord,我们非常乐意帮助你!
Better Chat Ecosystem 的一部分!
此模组与 我的另一个模组 完美配合,该模组添加了本地和全局聊天,快去看看吧!
How it works
With this server side mod, you can customize all of your Minecraft server's join and leave messages.
It supports...
- Minecraft colour codes (e.g.
&lfor bold,&efor yellow) - HEX colour codes (usage: &#RRGGBB in messages)
- in-game customization using commands or server-side configuration using the
betterjoinmessages.jsonfile - many placeholders to use in the custom messages (more down below)
- global and local broadcasting in a configurable distance
- enable, disable and customize first-time join messages, greet new players and tell everyone else with a special message the first time they join, then switch to your regular join message afterward
Configuration
The config file is located at config/betterjoinmessages.json (fabric).
| Option | Description | Default |
|---|---|---|
joinMessage |
Custom message sent when players join | &e{player} joined the game |
leaveMessage |
Custom message sent when players leave | &e{player} left the game |
firstJoinMessage |
Custom message sent when a player joins the server for the first time | §a{player} joined the game for the first time!" |
firstJoinEnabled |
Enables or disables the first-time-join message | true |
sendGlobal |
Determines whether the messages should be visible global | true |
distance |
Only players within this range can see the messages if sendGlobal is set to false |
50.0 |
Leave messages empty or set them to whitespace to disable broadcasts completely.
Commands
You can customize everything through in-game commands as followed:
Requirement: All
/bjmcommands require Operator Permission Level 2 (GAMEMASTERS/ OP) or server console access.
| Command | Argument | Description |
|---|---|---|
/bjm join |
<message> |
Updates the regular player join message template. |
/bjm leave |
<message> |
Updates the leave/disconnect message template. |
/bjm firstjoin |
<message> |
Updates the message template sent when a player joins for the first time. |
/bjm firstjoinToggle |
<true/false> |
Enables (true) or disables (false) first-time join messages. |
/bjm global |
<true/false> |
Toggles between global broadcast mode and proximity/distance-based chat mode. |
/bjm distance |
<distance> |
Sets the broadcast radius in blocks when global mode is disabled. |
/bjm seenplayersReset |
(none) | Clears the entire list of recorded players (all players will trigger a first-join message on their next login). |
/bjm seenplayersReset |
player/UUID |
Removes a specific player (by username or UUID) from the seen players registry. |
/bjm status |
(none) | Displays a formatted configuration overview and live message preview to the caller. |
/bjm reload |
(none) | Reloads the configuration file (betterjoinmessages.json) from disk. |
Placeholders & Formatting
Placeholders
{player}→ Raw Minecraft account name (Scoreboard name).{displayname}→ Formatted player display name (supports team prefixes, suffixes, and nickname mods).{onlineplayer}→ Current number of players online on the server.{maxplayers}→ Maximum player slots on a server.{uniqueplayers}→ Total count of players who have ever joined the server.
Formatting
- RGB Hex colours:
&#RRGGBB(e.g.7FFFF,&#FF5500) - Legacy colours:
&9,&a - Text styles:
&l(bold),&o(italic),&n(underlined),&m(strikethrough),&k(obfuscated) - Reset code:
&r
Showcase
This video shows what the in-game configuration and the custom messages look like.
Note: The in the video shown commands are those from 1.2.0. All features added in 1.3.0 (new place holders, HEX colours, new commands etc.) are not presented!
If you need help with my mod, for example with the configuration, please join my discord, we are very happy to help you!
Part of the Better Chat Ecosystem!
This mod works perfectly well with my other mod, which adds local and global chat, go check it out!
下载 Better Join Messages
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Join Messages
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Join Messages
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Join Messages
下载 Better Join Messages
下载 Better Join Messages
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Join Messages
下载 Better Join Messages
下载 Better Join Messages
下载 Better Join Messages
1.3.0 + 1.21.x 版本更新内容?
- 1.3.0 新增对 1.21.x 的支持
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧