ban Console Command

Documentation and detailed help with working examples.

ban Command

Admin

This command bans the specified user based on their name, IP address, or userID.

ban [name/ip/userID]
Remove brackets [ ] from the command.

Parameters

Name / IP / User ID

The user you wish to ban.

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

Looking for Valheim console commands?

Search our complete list!

Quick Overview

The ban command is used to prevent a specific user from accessing your game server.

You can ban someone based on their username, their IP address, or their User ID.

If you have trouble with a particular user, such as disruptive behavior or cheating, you can use this command to permanently remove them from your server.

Was this helpful?