Skip to content
/SLASHPLAY

How to ban a player in 7 Days to Die

As an admin, type ban add PlayerName 10 years "reason" in the in-game console (F1); ban remove lifts it.

ban

Bans a player for a set time, removes a ban, or lists bans.

ban add <name / entity id / platform + platform user id> <duration> <duration unit> [reason] [displayname] ban remove <name / entity id / platform + platform user id> ban list

Examples

ban add madmole 2 minutes "Time for a break" "Joel"

The game's own example.

ban add Steam 76561198000000000 10 years "Cheating"

A long ban by Steam ID.

ban remove Steam 76561198000000000

Lifts it.

Arguments

name / entity id / platform + platform user idRequired
Who to ban.
durationRequired
How long, as a number.
duration unitRequired
minute(s), hour(s), day(s), week(s), month(s) or year(s).
reasonOptional
Shown to the player.
displaynameOptional
A name for the ban list.

What it does

Bans lift on their own when the time is up, so give a long duration for a permanent ban. Names and entity IDs work for online players; a platform and user ID works for anyone.

Good to know

  • Type it in the in-game console (F1) as an admin from serveradmin.xml. SLASHPLAY's **Console** tab shows the server's output but can't send commands to 7 Days to Die.
  • Only admins can run it by default (permission level 0); commandpermission changes that.

Run it on your server

Admin commands are typed in the in-game console (F1) by a player on the admin list in UserData/Saves/serveradmin.xml; the server page's Console tab shows the server's output but can't send commands. Settings go in sdtd.xml on the Files tab and apply at the next start. New to this? Start a 7 Days to Die server first.

Your own
7 Days to Die server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.