跳到正文

Auto Greeting

作者:lyuwenhan

Automatically sends greeting messages based on configured conditions.

收藏

截图

介绍

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

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:

  • [a|b] means a or b

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
/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
/autogreet other [whitelist|blacklist] [match|except] [equal|contain|startWith|endWith] remove
/autogreet other [whitelist|blacklist] [match|except] [equal|contain|startWith|endWith] remove
/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

常见问题

Auto Greeting 支持哪些 Minecraft 版本?

Auto Greeting 支持 Minecraft Java 版 1.21.11–26.3,共 3 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Auto Greeting 怎么安装?

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

评论

登录后评论和评分

lyuwenhan 的其他作品

查看全部 →