# How to Kick and Ban Players on Your Minecraft Server

Managing player behavior is essential for maintaining a friendly and fair environment on your Minecraft server. Whether you need to remove a disruptive player temporarily or permanently, kicking and banning are effective tools for server admins. This guide will walk you through the steps of kicking and banning players using in-game commands, as well as through the use of plugins like **LiteBans**.

# Kicking Players

Kicking a player removes them from the server temporarily, usually due to disruptive behavior. This action does not prevent the player from joining again unless combined with a ban.

### Use the `/kick` Command

To kick a player, follow these steps:

<div class="cl-preview-section" id="bkmrk-open-the-chat-or-con">1. **Open the Chat or Console**  
    You can either run the command from the chat (if you are an admin) or from the console (for full control).
2. **Type the `/kick` Command**  
    The basic format of the command is:
    
    ```
    /kick <player> [reason]  
    
    
    ```
    
    
    - Replace `<player>` with the player’s username.
    - Optionally, add a `[reason]` to explain why they are being kicked (this will be shown in the player’s chat).

</div>### Example:

```
/kick Notch Griefing in spawn  


```

This will kick the player **Notch** for griefing in the spawn area.

### Verify the Player Is Kicked

Once the command is executed, the player will be removed from the server. They will receive a message indicating the reason for the kick (if provided), and they can attempt to rejoin at any time.

# Banning Players

Banning a player prevents them from joining your server either temporarily or permanently. Bans are ideal for serious violations of server rules.

### Use the `/ban` Command

To ban a player, follow these steps:

<div class="cl-preview-section" id="bkmrk-open-the-chat-or-con">1. **Open the Chat or Console**  
    Like kicking, the ban command can be used from either chat or console.
2. **Type the `/ban` Command**  
    The basic format is:
    
    ```
    /ban <player> [reason]  
    
    
    ```
    
    
    - Replace `<player>` with the player’s username.
    - Optionally, add a `[reason]` to provide context for the ban (this will be shown in the player’s chat).

</div>### Example:

```
/ban Griefer Spamming TNT in spawn  


```

This will permanently ban **Griefer** for spamming TNT in the spawn area.

### Verify the Player Is Banned

Once the command is executed, the player will be disconnected from the server and will be unable to rejoin until the ban is lifted. A message will appear in the chat, confirming that the player has been banned.

# Temporary Bans

If you want to ban a player temporarily, you can specify the duration of the ban.

### Step 1: Use the `/tempban` Command

<div class="cl-preview-section" id="bkmrk-open-the-chat-or-con">1. **Open the Chat or Console**  
    Run the following command from either chat or the console.
2. **Type the `/tempban` Command**  
    The format for a temporary ban is:
    
    ```
    /tempban <player> <duration> [reason]  
    
    
    ```
    
    
    - `<player>` is the player’s username.
    - `<duration>` is the amount of time for the ban (e.g., `30m` for 30 minutes, `1d` for one day, `2w` for two weeks).
    - `[reason]` is optional.

</div>### Example:

```
/tempban Notch 1d Breaking server rules  


```

This will ban **Notch** for 1 day with the reason “Breaking server rules.”

# Using LiteBans Plugin for Enhanced Management

If you are using the **LiteBans** plugin for better player management, it provides advanced features like banning via IP, history tracking, and more.

### Step 1: Install LiteBans

<div class="cl-preview-section" id="bkmrk-download-the-liteban">1. Download the **LiteBans** plugin from [SpigotMC](https://www.spigotmc.org/resources/litebans.15112/).
2. Place the `.jar` file in the `/plugins` folder.
3. Restart your server.

</div>### Step 2: Use LiteBans Commands

After installing LiteBans, you can use its extended commands to manage bans:

<div class="cl-preview-section" id="bkmrk-ban-a-player-%2Fban-%3Cp">- **Ban a Player**
    
    ```
    /ban <player> [reason]  
    
    
    ```
- **TempBan a Player**
    
    ```
    /tempban <player> <duration> [reason]  
    
    
    ```
- **Ban an IP**
    
    ```
    /ipban <ip> [reason]  
    
    
    ```
- **Unban a Player**
    
    ```
    /unban <player>  
    
    
    ```
- **View Ban History**
    
    ```
    /history <player>  
    
    
    ```

</div>LiteBans also integrates with MySQL for persistent ban storage, meaning bans will be saved even if you switch servers.

<div class="cl-preview-section" id="bkmrk-">---

</div>

# Managing & Removing Bans

## Managing Bans

### Use the `/banlist` Command

To view all active bans, use the `/banlist` command.

### Step 1: Use the `/banlist` Command

Run:

```
/banlist  


```

This will display a list of all banned players. You can see both players and IPs that have been banned.

<div class="cl-preview-section" id="bkmrk-">---

</div>## Removing Bans

To lift a ban, whether temporary or permanent:

### Step 1: Use the `/pardon` Command

<div class="cl-preview-section" id="bkmrk-open-the-chat-or-con">1. **Open the Chat or Console**  
    Use this command from either the chat or console.
2. **Type the `/pardon` Command**  
    The format is:
    
    ```
    /pardon <player>  
    
    
    ```

</div>### Example:

```
/pardon Griefer  


```

This will unban **Griefer** and allow them to rejoin the server.

## Additional Help

If you encounter any issues or need further assistance, open a support ticket via the [Billing Area](https://billing.ridgelineservers.com/tickets). Our support team is ready to assist you.

<div class="cl-preview-section" id="bkmrk--1">---

</div>