mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-12 02:28:02 +02:00
Made regulars unable to use /forcetoggle
This commit is contained in:
parent
f44789c485
commit
13d40e2437
@ -366,8 +366,7 @@ local function toggle_tp_mode(cmd)
|
||||
end
|
||||
|
||||
global.old_force = {}
|
||||
local function forcetoggle(cmd)
|
||||
if not game.player then
|
||||
if not game.player or not (game.player.admin or is_mod(game.player.name)) then
|
||||
cant_run(cmd.name)
|
||||
return
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user