From 81f10b1fe70ab43d1164292959bf1816f4f0fc8e Mon Sep 17 00:00:00 2001 From: Jayefuu Date: Sat, 27 Feb 2021 19:18:31 +0000 Subject: [PATCH] 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 :( --- features/redmew_commands.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/features/redmew_commands.lua b/features/redmew_commands.lua index f81a02fd..f5066657 100644 --- a/features/redmew_commands.lua +++ b/features/redmew_commands.lua @@ -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 )