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:
commit
9abe82a6b4
@ -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
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user