1
0
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:
Maik Wild 2017-09-27 23:58:15 +02:00
parent f44789c485
commit 13d40e2437

View File

@ -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