
自动问候
根据配置的条件自动发送问候消息。
查看大图语言
自动问候
一个 Fabric 模组,当你或其他玩家加入服务器时自动发送预设的问候消息。
功能特性
- 支持多条消息
- 支持普通聊天消息以及命令
- 支持玩家名称的黑名单/白名单规则
- 支持占位符
- 在你加入服务器后自动发送预设消息
- 在其他玩家加入服务器时自动发送预设消息
命令概览
/autogreet self .../autogreet other ...
说明:
[a|b]表示a或b
例如:
/autogreet [other|self] status
表示:
/autogreet other status
或
/autogreet self status
命令
状态
控制自动问候是启用还是禁用。
/autogreet [self|other] status
/autogreet [self|other] status enable
/autogreet [self|other] status disable
/autogreet [self|other] status toggle
消息
控制模组发送的消息。
支持占位符。
/autogreet [self|other] message add <message>
/autogreet [self|other] message add <message> <index>
/autogreet [self|other] message remove
/autogreet [self|other] message remove <index>
/autogreet [self|other] message remove all
/autogreet [self|other] message list
self 的占位符
| 占位符 | 说明 |
|:-:|:-:|
| @player | 玩家名称 |
| @UUID | UUID |
| @X | X 坐标(最多 3 位小数) |
| @Y | Y 坐标(最多 3 位小数) |
| @Z | Z 坐标(最多 3 位小数) |
| @health | 当前生命值 |
| @level | 当前经验等级 |
other 的占位符
| 占位符 | 说明 |
|:-:|:-:|
| @player | 玩家名称 |
| @UUID | 玩家 UUID |
黑名单 / 白名单
/autogreet other [whitelist|blacklist] list
/autogreet other [whitelist|blacklist] clear confirm/autogreet other [whitelist|blacklist] [match|except] list
/autogreet other [whitelist|blacklist] [match|except] [equal|contain|startWith|endWith] add <pattern>
/autogreet other [whitelist|blacklist] [match|except] [equal|contain|startWith|endWith] remove
/autogreet other [whitelist|blacklist] [match|except] [equal|contain|startWith|endWith] remove <index>
/autogreet other [whitelist|blacklist] [match|except] [equal|contain|startWith|endWith] remove all
/autogreet other [whitelist|blacklist] [match|except] [equal|contain|startWith|endWith] list
示例
/autogreet self message add 大家好,我是 @player,位于 (@X, @Y, @Z)
/autogreet self message add 生命值:@health | 等级:@level/autogreet other message add 欢迎 @player!
/autogreet other message add 你好 @player (@UUID)
消息行为
如果消息以 / 开头,则作为命令执行。
如果消息不以 / 开头,则作为普通聊天消息发送。
过滤
其他玩家的问候支持:
- 黑名单
- 白名单
match规则except规则equalcontainstartWithendWith
这些规则决定加入的玩家名称是否触发问候逻辑。
过滤行为
- 如果玩家匹配黑名单,则被忽略
- 如果玩家匹配黑名单但也匹配黑名单 except,则重新被允许
- 如果白名单不为空,则只有匹配白名单的玩家才被允许
- 如果玩家匹配白名单但也匹配白名单 except,则被忽略
注意事项
index是可选的,从 1 开始add <message> <index>在该位置现有条目之前插入- 如果省略
index或超出有效范围,消息将追加到末尾 remove <index>删除指定条目- 不带索引的
remove删除最后一条消息 remove all清空消息列表clear confirm清空整个黑名单或白名单规则集- 数值格式化为最多 3 位小数,并去除末尾的零
支持的版本
- Minecraft 26.1.2
- Fabric Loader 0.19.2+
- Fabric API 0.150.0+
- Java 25
- Cloth config(可选)
- Modmenu(可选)
许可证
MIT
正在加载版本记录…
正在加载评论…
评论在新手盒子客户端中发表,这里同步展示。