How to ban a player in Factorio
Type /ban <player> <reason> in the Console tab of your SLASHPLAY server, or in game chat as an admin. The player is kicked and can't rejoin while the ban stands.
ban
Bans a player from the server, with a reason. Works for players who are offline or have never joined.
/ban <player> <reason> Examples
/ban xTROLLx Throwing grenades in base Bans xTROLLx with a reason.
/ban xTROLLx Bans without a reason.
Arguments
playerRequired- The player's username.
reasonOptional- Why they were banned. Without one, the log says unspecified.
What it does
A banned player is kicked and can't join again until you unban them. Use /kick for a warning that lets them come back.
Good to know
- On SLASHPLAY, type it in the Console tab of the server page, with the leading slash. The Console runs it as the server, so it needs no admin rights.
- In game, an admin types it in chat, which opens with the key under Esc.
- Factorio keeps bans in
server-banlist.jsonin the server's root folder, not in the map. SLASHPLAY keeps onlysaves,modsandconfigbetween runs (pluspublic). So on SLASHPLAY a ban lasts until the server stops; check/bansafter each start.
Run it on your server
Type commands with the leading slash in the Console tab, which runs them as the server; in game, admins type them in chat. Settings go in config/server-settings.json in the Files tab and apply at the next restart. New to this? Start a Factorio server first.
Your own
Factorio server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.