Fix spacing

This commit is contained in:
ezhh 2017-09-09 17:59:30 +01:00
parent 87cd11f9ba
commit a367944605

View File

@ -20,8 +20,8 @@ local function hobble(user, target)
end end
-- apply curse -- apply curse
local player = minetest.get_player_by_name(target) local player = minetest.get_player_by_name(target)
local privs=minetest.get_player_privs(target) local privs = minetest.get_player_privs(target)
privs.hobbled=true privs.hobbled = true
minetest.set_player_privs(target,privs) minetest.set_player_privs(target,privs)
player:set_physics_override({jump = 0}) player:set_physics_override({jump = 0})
end end
@ -36,7 +36,7 @@ minetest.register_chatcommand("hobble", {
minetest.chat_send_player(name,"Player does not exist") minetest.chat_send_player(name,"Player does not exist")
return return
end end
hobble(name,target) hobble(name, target)
minetest.chat_send_player(target, "Cursed by an admin! No more jumping!") minetest.chat_send_player(target, "Cursed by an admin! No more jumping!")
minetest.chat_send_player(name, "Curse successful!") minetest.chat_send_player(name, "Curse successful!")
end end
@ -53,7 +53,7 @@ local function slowmo(name, target)
local player = minetest.get_player_by_name(target) local player = minetest.get_player_by_name(target)
local privs = minetest.get_player_privs(target) local privs = minetest.get_player_privs(target)
privs.slowed = true privs.slowed = true
minetest.set_player_privs(target,privs) minetest.set_player_privs(target, privs)
player:set_physics_override({speed = 0.3}) player:set_physics_override({speed = 0.3})
end end
@ -82,9 +82,9 @@ local function noglitch(name, target)
end end
-- apply curse -- apply curse
local player = minetest.get_player_by_name(target) local player = minetest.get_player_by_name(target)
local privs=minetest.get_player_privs(target) local privs = minetest.get_player_privs(target)
privs.unglitched=true privs.unglitched = true
minetest.set_player_privs(target,privs) minetest.set_player_privs(target, privs)
player:set_physics_override({sneak = false}) player:set_physics_override({sneak = false})
end end
@ -113,9 +113,9 @@ local function freeze(name, target)
end end
-- apply curse -- apply curse
local player = minetest.get_player_by_name(target) local player = minetest.get_player_by_name(target)
local privs=minetest.get_player_privs(target) local privs = minetest.get_player_privs(target)
privs.frozen=true privs.frozen = true
minetest.set_player_privs(target,privs) minetest.set_player_privs(target, privs)
player:set_physics_override({jump = 0, speed = 0}) player:set_physics_override({jump = 0, speed = 0})
end end
@ -146,7 +146,7 @@ local function getlost(name,target)
local player = minetest.get_player_by_name(target) local player = minetest.get_player_by_name(target)
local privs = minetest.get_player_privs(target) local privs = minetest.get_player_privs(target)
privs.lost = true privs.lost = true
minetest.set_player_privs(target,privs) minetest.set_player_privs(target, privs)
player:hud_set_flags({minimap = false}) player:hud_set_flags({minimap = false})
end end
@ -198,13 +198,13 @@ minetest.register_chatcommand("setfree",{
minetest.chat_send_player(name,"Player does not exist") minetest.chat_send_player(name,"Player does not exist")
return return
end end
local privs=minetest.get_player_privs(target) local privs = minetest.get_player_privs(target)
privs.frozen=nil privs.frozen = nil
privs.hobbled=nil privs.hobbled = nil
privs.slowed=nil privs.slowed = nil
privs.unglitched=nil privs.unglitched = nil
privs.lost=nil privs.lost = nil
minetest.set_player_privs(target,privs) minetest.set_player_privs(target, privs)
player:set_physics_override({jump = 1, speed = 1, sneak = true}) player:set_physics_override({jump = 1, speed = 1, sneak = true})
player:hud_set_flags({minimap = true}) player:hud_set_flags({minimap = true})
minetest.chat_send_player(target, "The curse is lifted. You have been set free!") minetest.chat_send_player(target, "The curse is lifted. You have been set free!")