> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.sparkedhost.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Ban Someone on a Minecraft Server

Banning players on a Minecraft server is essential for maintaining an enjoyable server. Whether you're dealing with griefers, hackers, rule-breakers, or other disruptive players, Minecraft offers multiple ways to ban unwanted users.

You can use simple in-game commands like `/ban <player>` to remove them permanently or `/ban-ip <IP>` to block the player's IP address.

In this guide, we'll discuss ban methods and provide examples of how to use them in Java and Bedrock.

Don't already host with us? 10,000+ server owners trust Sparked Host for lag-free Minecraft worlds. [Claim your server savings](https://sparkedhost.com/minecraft-server-hosting?utm_source=referral&utm_medium=knowledge_base&utm_campaign=kb_redirect&utm_content=intro) to get higher performance at less $ per month.

${youtube}[](7VKZhq_Nons)

## IP Bans vs. Normal Bans

* **IP Bans:** Blocks the player's IP address, preventing them from accessing the server from that IP.
* **Normal Bans:** Bans a player's username, allowing them to rejoin using a different account.

You can use commands in your client or the server's console to ban/unban players.

> **Note:** You must have server operator status to ban a player using in-game commands. [Learn how to become an operator here](https://help.sparkedhost.com/en/article/how-to-op-someone-on-a-minecraft-server-1segita/).

## How to Ban a Player on Your Minecraft Server

There are a few methods you can use to ban a player on your Minecraft server: 

### Method 1: Using the Server Console

1. Open the server console.
2. Type the command:
   
```bash
ban <username>
```
  
3. Press **Enter**.

   ![](https://images.surferseo.art/9c073d6f-1ec3-4665-bf2b-30e68138992c.png =768x222)

### Method 2: Using In-Client Commands

1. Open the chat in-game.
2. Type the command:
   
```bash
/ban <username>
```
  
3. Press **Enter**.

   ![](https://images.surferseo.art/fe941de6-6c99-447b-8d71-1ae1e36abe0b.png)
---

### How to Find a User's IP Address (for an IP Ban)

A user's IP address is displayed in the console when they connect to the server. This helps server operators manage users and apply IP bans if necessary.

1. Log into your server panel.
2. Open the "Files" tab and navigate to the "logs" folder.

   ![](https://images.surferseo.art/eb1fedfb-b190-4952-be94-35ace1b3b814.png =768x424)

3. Open the "latest.log" file.
4. Use **CTRL + F** to search for the username. The user's IP will be listed next to their name.

   ![](https://images.surferseo.art/b5893325-31de-4f34-bcc6-bef1f56f8c59.png)
---

### How to IP Ban a Player on Your Minecraft Server

You can IP-ban players using either their username or IP address. If you want to be extra careful, we recommend using the steps from above to find the player's IP address. 

#### Using the Server Console

To IP ban a Minecraft player using the server console: 

1. Type the command:
   
```bash
ban-ip <username>
```
  
2. Press **Enter**.

   ![](https://images.surferseo.art/0303e346-0227-4696-b73c-2287413147fa.png =768x253)

#### Using In-Game Client Commands

To IP ban a Minecraft player using in-game client commands: 

1. Open the chat.
2. Type the command:
   
```bash
/ban-ip <username>
```
  
3. Press **Enter**.

   ![](https://images.surferseo.art/47b1c99a-428f-4f34-93db-05a0116461da.png)
---

### How to View the Ban List on a Minecraft

You can view the list of banned players using either the server console or in-game commands.

#### Using the Server Console

1. Type the command:
   
```bash
banlist
```
  
2. Press **Enter**.

#### Using In-Client Commands

1. Open the chat.
2. Type the command:
   
```bash
/banlist
```
  
3. Press **Enter**.

   ![](https://images.surferseo.art/8f3cf1eb-3139-40e6-ae9b-8950bd16c7ee.png)
---

## How to Unban a Player on Your Minecraft Server

Sometimes, you might want to unban a player on your Minecraft server. You can unban a player on your Minecraft server using both the server console, and in game. 

#### Using the Server Console

To unban a player on your Minecraft server using the server console: 

1. Type the command:
   
```bash
pardon <username>
```
  
2. Press **Enter**.

   ![](https://images.surferseo.art/18bb967c-1a56-469e-ba4a-62c3c8f11161.png)

#### Using In-Game Client Commands

To unban a player on your Minecraft server using in-game client commands: 

1. Open the chat.
2. Type the command:
   
```bash
/pardon <username>
```
  
3. Press **Enter**.

   ![](https://images.surferseo.art/228bef27-d7ec-415b-82ed-b6fb43535c91.png)
---

### How to Unban an IP on Your Minecraft Server

You can also unban IPs on your Minecraft server in the server console and in-game. 

#### Using the Server Console

To unban an IP on your Minecraft server in the server console: 

1. Type the command:
   
```bash
pardon-ip <IP Address>
```
  
2. Press **Enter**.

#### Using In-Client Commands

To unban an IP on your Minecraft server in-game: 

1. Open the chat.
2. Type the command:
   
```bash
/pardon-ip <IP Address>
```
  
3. Press **Enter**.

   ![](https://images.surferseo.art/6ba44406-38b7-4136-812e-1d74acf64821.png)
---

## Still Have Some Questions?

If you need further assistance, you can file a ticket [here](https://billing.sparkedhost.com/submitticket.php).