1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-03-03 14:53:01 +02:00

Merge pull request #1187 from Refactorio/fix_zoom

Limiting /zoom command to admins only
This commit is contained in:
grilledham 2021-02-27 20:00:25 +00:00 committed by GitHub
commit 9abe82a6b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
)