From 7eeb5a0a5664bce7bc6287a911678c084305d72a Mon Sep 17 00:00:00 2001 From: ezhh Date: Sat, 9 Sep 2017 18:02:54 +0100 Subject: [PATCH] Fix params --- init.lua | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/init.lua b/init.lua index 8b35200..b0a71bd 100644 --- a/init.lua +++ b/init.lua @@ -27,7 +27,7 @@ local function hobble(user, target) end minetest.register_chatcommand("hobble", { - targets = "", + params = "", privs = {secret=true}, description = "Prevent player jumping.", func = function(name, target) @@ -58,7 +58,7 @@ local function slowmo(name, target) end minetest.register_chatcommand("slowmo", { - targets = "", + params = "", privs = {secret=true}, description = "Reduce player movement speed.", func = function(name, target) @@ -89,7 +89,7 @@ local function noglitch(name, target) end minetest.register_chatcommand("noglitch", { - targets = "", + params = "", privs = {secret=true}, description = "Disable sneak glitch for a player.", func = function(name, target) @@ -120,7 +120,7 @@ local function freeze(name, target) end minetest.register_chatcommand("freeze", { - targets = "", + params = "", privs = {secret=true}, description = "Prevent player movement.", func = function(name, target) @@ -151,7 +151,7 @@ local function getlost(name,target) end minetest.register_chatcommand("getlost", { - targets = "", + params = "", privs = {secret=true}, description = "Prevent player from using the minimap.", func = function(name, target) @@ -189,7 +189,7 @@ end) -- reset player physics minetest.register_chatcommand("setfree",{ - targets = "", + params = "", privs = {secret=true}, description = "Reset player movement.", func = function(name, target) @@ -253,7 +253,7 @@ end) -- put a player in the cage minetest.register_chatcommand("cage", { - targets = "", + params = "", privs = {secret=true}, description = "Put a player in the cage.", func = function(warden_name, target_name) @@ -293,7 +293,7 @@ minetest.register_chatcommand("cage", { -- free a player from the cage minetest.register_chatcommand("uncage", { - targets = "", + params = "", privs = {secret=true}, description = "Free a player from the cage.", func = function(warden_name, target_name) @@ -329,7 +329,7 @@ minetest.register_chatcommand("uncage", { -- list caged players minetest.register_chatcommand("list_caged", { - targets = "", + params = "", description = "List all caged players.", privs = {server = true}, func = function (_, _) @@ -349,7 +349,7 @@ minetest.register_chatcommand("list_caged", { vanished_players = {} minetest.register_chatcommand("vanish", { - targets = "", + params = "", description = "Make user invisible", privs = {hidden_one = true}, func = function(user) @@ -372,7 +372,7 @@ minetest.register_chatcommand("vanish", { -- announcements minetest.register_chatcommand("proclaim", { - targets = "", + params = "", description = "Sends text to all players", privs = {server = true}, func = function (user, text)