Fix admin name check

This commit is contained in:
ezhh 2017-09-09 17:41:32 +01:00
parent b9ead08fc7
commit 26b9a67e64

View File

@ -15,7 +15,7 @@ minetest.register_privilege("hidden_one", {description = "Can hide from players.
local function hobble(name, param) local function hobble(name, param)
-- return if player is admin -- return if player is admin
local admin_name = minetest.setting_get ("name") local admin_name = minetest.setting_get ("name")
if name == admin_name then if param == admin_name then
return return
end end
-- apply curse -- apply curse
@ -46,7 +46,7 @@ minetest.register_chatcommand("hobble", {
local function slowmo(name, param) local function slowmo(name, param)
-- return if player is admin -- return if player is admin
local admin_name = minetest.setting_get ("name") local admin_name = minetest.setting_get ("name")
if name == admin_name then if param == admin_name then
return return
end end
-- apply curse -- apply curse
@ -77,7 +77,7 @@ minetest.register_chatcommand("slowmo", {
local function noglitch(name, param) local function noglitch(name, param)
-- return if player is admin -- return if player is admin
local admin_name = minetest.setting_get ("name") local admin_name = minetest.setting_get ("name")
if name == admin_name then if param == admin_name then
return return
end end
-- apply curse -- apply curse
@ -108,7 +108,7 @@ minetest.register_chatcommand("noglitch", {
local function freeze(name, param) local function freeze(name, param)
-- return if player is admin -- return if player is admin
local admin_name = minetest.setting_get ("name") local admin_name = minetest.setting_get ("name")
if name == admin_name then if param == admin_name then
return return
end end
-- apply curse -- apply curse
@ -139,7 +139,7 @@ minetest.register_chatcommand("freeze", {
local function getlost(name,param) local function getlost(name,param)
-- return if player is admin -- return if player is admin
local admin_name = minetest.setting_get ("name") local admin_name = minetest.setting_get ("name")
if name == admin_name then if param == admin_name then
return return
end end
-- apply curse -- apply curse