From 42cf5b38d2b8cff5920c13e9ec4102ece86838e1 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 5 Feb 2018 03:02:25 +0100 Subject: [PATCH] Remove player privilege --- mods/MISC/mcl_commands/init.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/mods/MISC/mcl_commands/init.lua b/mods/MISC/mcl_commands/init.lua index 23fd88465..b7ce1e1cd 100644 --- a/mods/MISC/mcl_commands/init.lua +++ b/mods/MISC/mcl_commands/init.lua @@ -35,19 +35,13 @@ local function handle_kill_command(suspect, victim) return true end -if not minetest.registered_privileges["player"] then - minetest.register_privilege("player", { - description = S("Can change player attributes"), - give_to_singleplayer = false, - }) -end if minetest.registered_chatcommands["kill"] then minetest.unregister_chatcommand("kill") end minetest.register_chatcommand("kill", { params = S("[]"), description = S("Kill player or yourself"), - privs = {player=true}, + privs = {server=true}, func = function(name, param) if(param == "") then -- Selfkill