# INicknameManager
> Client-rendered nicknames: replaces every rendered instance of a player's real name on a viewer's client — tab list, floating nametag, chat name slots, join/death messages and command suggestions. Text typed by players (message bodies, whispers) is left untouched. Per-viewer: only the viewers the nickname is sent to see it. Commands typed by a viewer containing a nick they know are resolved back to the real name server-side, so `/msg <nick>` keeps working.
`gg.lode.lecternapi.api.manager.INicknameManager`
---
## Signature
```java
public interface INicknameManager
```
---
## Methods
### setNickname
```java
void setNickname(Player viewer, Player target, String nick)
void setNickname(Player viewer, Player target, String nick, UUID fakeUuid)
```
Shows the target to this viewer under the given nickname.
| Parameter | Type | Description |
|---|---|---|
| `viewer` | `Player` | The player whose client renders the nickname. |
| `target` | `Player` | The player being renamed. |
| `nick` | `String` | The displayed name. |
| `fakeUuid` | `UUID` | Optional scrambled identity: the UUID exposed to third-party client mods (tier taggers, nick detectors) on the viewer's side. The real skin is preserved. `null` keeps the real UUID. |
Nicknames survive viewer reconnects (re-sent automatically after the handshake).
---
### removeNickname
```java
void removeNickname(Player viewer, UUID targetUuid)
```
Removes the target's nickname on this viewer's client.
---
### clearNicknames
```java
void clearNicknames(Player viewer)
```
Clears every nickname on this viewer's client.
---
## Behaviour Notes
- **Typed text is preserved:** in chat and whispers, only the sender-name slot is rewritten — a message body containing the real name stays as typed.
- **Plugin-formatted chat:** lines flattened to plain text replace only the first occurrence of the real name (the name slot virtually always precedes typed content).
- **Command suggestions** insert the real name so the server resolves it; typed nicks are rewritten to real names before command parsing for viewers who know the nick.
---
## Related Pages
- [[ILecternAPI]] — Access via `getNicknameManager()`