> For the complete documentation index, see [llms.txt](https://docs.quickclient.cc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.quickclient.cc/en/extras/user.md).

# Account

The player's nickname, name protection, server address and Quick account.

The nickname, server address and Quick account name are available through `client()`. For example, this draws the nickname in the corner of the screen:

```java
String who = client().protectedUsername();
render.drawClientText(who, 5f, 5f, 7f, -1);
```

| Method                | Type      | Description                                                           |
| --------------------- | --------- | --------------------------------------------------------------------- |
| `username()`          | `String`  | the real account nickname, available even in the main menu            |
| `protectedUsername()` | `String`  | the nickname with name protection applied, safe to draw on screen     |
| `protect(text)`       | `String`  | replaces the nickname in any string the same way name protection does |
| `globalsName()`       | `String`  | the Quick account name, not related to the Minecraft nickname         |
| `server()`            | `String`  | server address; empty in singleplayer and outside a world             |
| `singleplayer()`      | `boolean` | whether this is singleplayer                                          |

The name protection module hides the player's nickname on screen so it does not end up in a recording. If your script draws the nickname, use `protectedUsername()` or pass the string through `protect(text)`. Otherwise the real nickname will show on screen as if protection were off. Quick replaces other players' names in the tab list and above heads on its own, you do not need to do anything for them.

Tokens, sessions and the password are not available to scripts. Account files are closed along with the whole file system, see [Sandbox and limits](/en/extras/limits.md) for details.

FPS, ping, effects and the open screen are described on the [Server, scoreboard, tab](/en/game/server.md) page.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.quickclient.cc/en/extras/user.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
