Описание
# NameProtect
Client-side Minecraft mod for Fabric 1.21.4. Filters and replaces nicknames and chat text on your screen using custom rules. Server sees nothing - purely visual, runs only on your client.
## Features
- **Nickname filtering** - replaces matching player names in chat, tab list, nameplates above heads, and team-colored displays
- **Chat replacement** - applies rules to all incoming chat messages
- **Custom rules** - define any number of `word → replacement` pairs
- **Case-insensitive matching** - rule `noob` matches `NOOB`, `Noob`, `nOoB`
- **Unicode support** - works with non-ASCII names (Cyrillic, etc.)
- **Live config** - rules persist in JSON, reload without restart
- **Zero server impact** - pure client-side mixins, no packets sent
## Commands
All commands run client-side under `/nameprotect`:
| Command | Action |
|---------|--------|
| `/nameprotect set ` | Add or update a rule |
| `/nameprotect remove ` | Delete a rule |
| `/nameprotect list` | Show all active rules |
| `/nameprotect reload` | Reload config from disk |
| `/nameprotect clear` | Remove all rules |
## Example
```
/nameprotect set Notch SteveTheLegend
/nameprotect set badword ***
```
After this, any occurrence of "Notch" in chat or above heads renders as "SteveTheLegend", and "badword" becomes "***".
## Config
Rules stored at `.minecraft/config/nameprotect.json`:
```json
{
"notch": "SteveTheLegend",
"badword": "***"
}
```
You can edit this file directly, then run `/nameprotect reload`.
## Requirements
- Minecraft **1.21.4**
- **Fabric Loader** 0.16.0+
- **Fabric API**
- **Java 21**
## Installation
1. Install Fabric Loader for 1.21.4
2. Drop **Fabric API** into `mods/`
3. Drop **NameProtect** jar into `mods/`
4. Launch - use `/nameprotect` in-game
## Notes
- Client-side only - does not work on the server side, does not need to be on the server
- No mixin conflicts known with major mods
- Rules apply to display only - chat history files store original text
## License
MIT - Reizoo