# How to setup whitelist

**Would you like for your server to only be accessible to certain players?** There is a solution built into Minecraft known as whitelisting, this allows for private Minecraft servers basically by putting their name in a list.

## :white\_check\_mark: How do I enable the whitelist?

To enable your whitelist you simply write the following line in your server console.

```
whitelist on
```

## :x: How do I disable the whitelist?

To disable your whitelist you simply write the following line in your server console.

```
whitelist off
```

## :heavy\_plus\_sign: How do I add players the whitelist?

To add people to your whitelist you simply write the following line in your server console.

```
whitelist add <name>
```

## :heavy\_minus\_sign: How do I remove someone from the whitelist? <a href="#how-do-i-remove-someone-from-the-whitelist" id="how-do-i-remove-someone-from-the-whitelist"></a>

To remove players from your whitelist you simply write the following line in your server console.

```
whitelist remove <name>
```

## :grey\_question: How do I know who is whitelisted? <a href="#how-do-i-know-who-is-whitelisted" id="how-do-i-know-who-is-whitelisted"></a>

To see what players are on your whitelist you simply write the following line in your server console.

```
whitelist list
```


---

# Agent Instructions: 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:

```
GET https://kb.winterzone.se/minecraft/categories/basic-features-explained/how-to-setup-whitelist.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
