语言
EN/English | ZH-CN/简体中文
Auto Greeting
一款客户端侧的 Fabric 模组,当你或其他玩家加入服务器时,自动发送预设的问候消息。
功能特性
- 支持多条消息
- 支持普通聊天消息以及指令
- 支持针对玩家名称的黑白名单规则
- 支持占位符
- 在你加入服务器后自动发送预设消息
- 在其他玩家加入服务器时自动发送预设消息
指令概览
/autogreet self ...
/autogreet other ...
注意:
例如:
/autogreet [other|self] status
表示以下任意一种:
/autogreet other status
或者
/autogreet self status
指令详情
Status(状态)
控制自动问候功能是启用还是禁用。
/autogreet [self|other] status
/autogreet [self|other] status enable
/autogreet [self|other] status disable
/autogreet [self|other] status toggle
Message(消息)
控制由该模组发送的消息。
支持占位符。
/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 Hello, I'm @player at (@X, @Y, @Z)
/autogreet self message add HP: @health | Level: @level
/autogreet other message add Welcome @player!
/autogreet other message add Hello @player (@UUID)
消息行为
如果消息以 / 开头,则作为命令执行。
如果消息不以 / 开头,则作为普通聊天消息发送。
过滤
other(其他玩家)问候支持:
- 黑名单
- 白名单
match 规则
except 规则
equal(完全匹配)
contain(包含)
startWith(以...开头)
endWith(以...结尾)
这些规则用于决定加入玩家的名称是否应触发问候逻辑。
过滤行为
- 如果玩家匹配 黑名单,则被忽略
- 如果玩家匹配黑名单但同时也匹配 黑名单排除项(blacklist except),则允许通过
- 如果 白名单 不为空,仅允许匹配白名单的玩家
- 如果玩家匹配白名单但同时也匹配 白名单排除项(whitelist except),则被忽略
说明
index 是可选的,且从 1 开始计数
add <message> <index> 会在该位置现有的项目之前插入
- 如果省略
index 或超出有效范围,消息将被追加到末尾
remove <index> 移除指定的项目
- 不带索引的
remove 移除最后一项
remove all 清空消息列表
clear confirm 清空整个黑名单或白名单规则集
- 数值格式最多保留 3 位小数,并去除末尾的零
支持版本
- Minecraft 26.3
- Fabric Loader 0.19.5+
- Fabric API 0.160.5+
- Java 25
- Cloth config(可选)
- Modmenu(可选)
许可证
MIT
/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 |
### 黑名单 / 白名单
```text
/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 Hello, I'm @player at (@X, @Y, @Z)
/autogreet self message add HP: @health | Level: @level
/autogreet other message add Welcome @player!
/autogreet other message add Hello @player (@UUID)
消息行为
如果一条消息以 / 开头,它将被执行作为命令。
如果消息不以 / 开头,则作为普通聊天消息发送。
过滤
其他问候支持:
- 黑名单
- 白名单
match 规则
except 规则
equal
contain
startWith
endWith
这些规则决定加入玩家的名字是否应触发问候逻辑。
过滤行为
- 如果玩家匹配黑名单,则被忽略
- 如果玩家匹配黑名单但也匹配 blacklist except(黑名单排除),则允许通过
- 如果白名单不为空,仅允许匹配白名单的玩家
- 如果玩家匹配白名单但也匹配 whitelist except(白名单排除),则被忽略
说明
index 是可选的,且从 1 开始计数
add <message> <index> 会在该位置现有项目之前插入
- 如果省略
index 或超出有效范围,消息将被追加到末尾
remove <index> 移除指定项
- 不带索引的
remove 移除最后一项
remove all 清空消息列表
clear confirm 清空整个黑名单或白名单规则集
- 数值最多保留 3 位小数,并去除末尾零
支持版本
- Minecraft 26.3
- Fabric Loader 0.19.5+
- Fabric API 0.160.5+
- Java 25
- Cloth config(可选)
- Modmenu(可选)
许可证
MIT
Languages
EN/English | ZH-CN/简体中文
Auto Greeting
A client-side Fabric mod that automatically sends preset greeting messages when you or other players join a server.
Features
- Supports multiple messages
- Supports plain chat messages as well as commands
- Supports blacklist / whitelist rules for player names
- Supports placeholders
- Automatically sends preset messages after you join a server
- Automatically sends preset messages when other players join a server
Command Overview
/autogreet self ...
/autogreet other ...
Notes:
For example:
/autogreet [other|self] status
means either:
/autogreet other status
or
/autogreet self status
Commands
Status
Controls whether auto greeting is enabled or disabled.
/autogreet [self|other] status
/autogreet [self|other] status enable
/autogreet [self|other] status disable
/autogreet [self|other] status toggle
Message
Controls the messages sent by the mod.
Placeholders are supported.
/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
Placeholders for self
| Placeholder |
Description |
@player |
Player name |
@UUID |
UUID |
@X |
X coordinate (up to 3 decimals) |
@Y |
Y coordinate (up to 3 decimals) |
@Z |
Z coordinate (up to 3 decimals) |
@health |
Current health |
@level |
Current experience level |
Placeholders for other
| Placeholder |
Description |
@player |
Player name |
@UUID |
Player UUID |
Blacklist / Whitelist
/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
Examples
/autogreet self message add Hello, I'm @player at (@X, @Y, @Z)
/autogreet self message add HP: @health | Level: @level
/autogreet other message add Welcome @player!
/autogreet other message add Hello @player (@UUID)
Message Behavior
If a message starts with /, it is executed as a command.
If a message does not start with /, it is sent as a normal chat message.
Filtering
other greetings support:
- blacklist
- whitelist
match rules
except rules
equal
contain
startWith
endWith
These rules determine whether the name of a joining player should trigger greeting logic.
Filtering behavior
- If a player matches the blacklist, they are ignored
- If a player matches the blacklist but also matches blacklist except, they are allowed again
- If the whitelist is not empty, only players matching the whitelist are allowed
- If a player matches the whitelist but also matches whitelist except, they are ignored
Notes
index is optional and 1-based
add <message> <index> inserts before the existing item at that position
- If
index is omitted or outside the valid range, the message is appended
remove <index> removes the specified item
remove without an index removes the last item
remove all clears the message list
clear confirm clears the entire blacklist or whitelist rule set
- Numeric values are formatted with up to 3 decimal places, and trailing zeros are removed
Supported Versions
- Minecraft 26.3
- Fabric Loader 0.19.5+
- Fabric API 0.160.5+
- Java 25
- Cloth config (Optional)
- Modmenu (Optional)
License
MIT
/autogreet [self|other] message remove
/autogreet [self|other] message remove <index>
/autogreet [self|other] message remove all
/autogreet [self|other] message list
#### Placeholders for `self`
| Placeholder | Description |
|:-:|:-:|
| `@player` | Player name |
| `@UUID` | UUID |
| `@X` | X coordinate (up to 3 decimals) |
| `@Y` | Y coordinate (up to 3 decimals) |
| `@Z` | Z coordinate (up to 3 decimals) |
| `@health` | Current health |
| `@level` | Current experience level |
#### Placeholders for `other`
| Placeholder | Description |
|:-:|:-:|
| `@player` | Player name |
| `@UUID` | Player UUID |
### Blacklist / Whitelist
```text
/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
Examples
/autogreet self message add Hello, I'm @player at (@X, @Y, @Z)
/autogreet self message add HP: @health | Level: @level
/autogreet other message add Welcome @player!
/autogreet other message add Hello @player (@UUID)
Message Behavior
If a message starts with /, it is executed as a command.
If a message does not start with /, it is sent as a normal chat message.
Filtering
other greetings support:
- blacklist
- whitelist
match rules
except rules
equal
contain
startWith
endWith
These rules determine whether the name of a joining player should trigger greeting logic.
Filtering behavior
- If a player matches the blacklist, they are ignored
- If a player matches the blacklist but also matches blacklist except, they are allowed again
- If the whitelist is not empty, only players matching the whitelist are allowed
- If a player matches the whitelist but also matches whitelist except, they are ignored
Notes
index is optional and 1-based
add <message> <index> inserts before the existing item at that position
- If
index is omitted or outside the valid range, the message is appended
remove <index> removes the specified item
remove without an index removes the last item
remove all clears the message list
clear confirm clears the entire blacklist or whitelist rule set
- Numeric values are formatted with up to 3 decimal places, and trailing zeros are removed
Supported Versions
- Minecraft 26.3
- Fabric Loader 0.19.5+
- Fabric API 0.160.5+
- Java 25
- Cloth config (Optional)
- Modmenu (Optional)
License
MIT
评论 0
登录后参与评分
还没有评论,来抢沙发吧