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:
parent
5bf4ab908c
commit
81f10b1fe7
@ -15,6 +15,7 @@ local tostring = tostring
|
|||||||
local tonumber = tonumber
|
local tonumber = tonumber
|
||||||
local pairs = pairs
|
local pairs = pairs
|
||||||
local floor = math.floor
|
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.
|
--- 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)
|
local function print_no_target(target_name)
|
||||||
@ -238,7 +239,8 @@ Command.add(
|
|||||||
'zoom',
|
'zoom',
|
||||||
{
|
{
|
||||||
description = {'command_description.zoom'},
|
description = {'command_description.zoom'},
|
||||||
arguments = {'zoom'}
|
arguments = {'zoom'},
|
||||||
|
required_rank = Ranks.admin
|
||||||
},
|
},
|
||||||
zoom
|
zoom
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user