Skip to content
/SLASHPLAY

How to ban a player from chat as an admin in Sven Co-op

As an admin listed in admins.txt, type admin_ban Dana 1440 in the in-game chat to ban Dana for a day.

admin_ban

Admin chat command that bans a player, with an optional ban time in minutes.

admin_ban <player> [minutes]

Examples

admin_ban Dana 1440

Ban Dana for a day.

Arguments

playerRequired
Name or Steam ID.
minutesOptional
Ban time in minutes.

What it does

Admins type it in chat to ban without the server console.

Good to know

  • Type it in the in-game chat. Everyone sees a line saying which admin did what.
  • From the PlayerManagement plugin that ships with Sven Co-op and loads by default. Only players in admins.txt can use it. It can't be used on other admins.

Run it on your server

Type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to svencoop/server.cfg in the Files tab: Sven Co-op runs it at every map change. New to this? Start a Sven Co-op server first.

Your own
Sven Co-op server.

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