1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-02-21 19:20:07 +02:00

Limiting /zoom command to admins only

Would prefer a fast fix as players are abusing the fuck out of it in crash site after one of them found it :(
This commit is contained in:
Jayefuu 2021-02-27 19:18:31 +00:00
parent 5bf4ab908c
commit 81f10b1fe7

View File

@ -15,6 +15,7 @@ local tostring = tostring
local tonumber = tonumber
local pairs = pairs
local floor = math.floor
local Ranks = require 'resources.ranks'
--- Informs the actor that there is no target. Acts as a central place where this message can be changed.
local function print_no_target(target_name)
@ -238,7 +239,8 @@ Command.add(
'zoom',
{
description = {'command_description.zoom'},
arguments = {'zoom'}
arguments = {'zoom'},
required_rank = Ranks.admin
},
zoom
)