ban Console Command
Syntaxban [name/ip/userID]· Admin
Updated
Remove brackets [ ] when typing the command.
- Name / IP / User ID
- The user you wish to ban.
Fill in the arguments below to build a ready-to-paste ban command.
Here is an example of how to use ban.
Permanently bans the user named Bjorn from the server.
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.
- bannedThis command displays a comprehensive list of all users who have been banned.
- kickThis command kicks out the specified user based on their name, IP address, or userID.
- saveThis command forces the game to immediately save any current progress.
- unbanThis command removes the ban on the specified user, allowing them to access the game again.