How to allow Lua commands on a Factorio server
Set "allow_commands": "true" in config/server-settings.json for everyone, or keep the default "admins-only", then restart your SLASHPLAY server.
allow_commands
Who may run Lua commands such as /c in game: everyone, nobody, or only admins (the default).
"allow_commands": "<true|false|admins-only>" Examples
"allow_commands": "admins-only" The default.
"allow_commands": "false" Nobody in game.
Values
| Value | What it does |
|---|---|
| true | Every player |
| false | Nobody |
| admins-onlyDefault | Only admins |
What it does
Lua commands can change anything on the map. Keep them to admins unless everyone on the server is trusted.
Good to know
- Edit
config/server-settings.jsonin the Files tab (Advanced, Files), then restart the server from the Power section on the General tab. It applies at the next start. - The Console tab can always run Lua commands, whatever this says.
/config set allow-commands falsechanges it until the next restart.
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.