Admin
This command bans the specified user based on their name, IP address, or userID.
Remove brackets [ ] when typing the command.
Parameters
- Name / IP / User ID
- The user you wish to ban.
Examples
Here is an example of how to use ban.
Permanently bans the user named Bjorn from the server.
In-Depth Description
The `ban` command in Valheim is an administrative tool used to prevent a specific user from accessing your game server. If a player is disrupting your gameplay, breaking rules, or cheating, you might want to remove them from your server, and `ban` does exactly that.
The ban command can identify the player in a few different ways:
- You can use their username if they're currently in your game, following this format: `ban [name]`.
- You can use their IP address if you have access to it, following this format: `ban [IP]`.
- And you can use their Steam userID, following this format: `ban [User ID]`.
Once banned, the user cannot join your server unless you reverse the ban using the [`unban`](/command/unban) command. This action is harsh but necessary in situations where a player is deliberately creating a toxic experience for others.
However, use this command carefully. Incorrectly banning an innocent player can lead to unnecessary conflict. Always make sure that you have the right person, and that the punishment is suitable for their offense.