# 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.