Formatting

This commit is contained in:
ezhh 2016-07-03 19:17:38 +01:00
parent fb7e685d75
commit 23f23b5cb2

View File

@ -39,11 +39,11 @@ end)
--reduces player movement speed --reduces player movement speed
local function slowmo(name, param) local function slowmo(name, param)
local player = minetest.get_player_by_name(param) local player = minetest.get_player_by_name(param)
local privs=minetest.get_player_privs(param) local privs=minetest.get_player_privs(param)
privs.slowed=true privs.slowed=true
minetest.set_player_privs(param,privs) minetest.set_player_privs(param,privs)
player:set_physics_override({speed = 0.3}) player:set_physics_override({speed = 0.3})
end end
minetest.register_chatcommand("slowmo", { minetest.register_chatcommand("slowmo", {
@ -71,11 +71,11 @@ end)
--disable sneak glitch for the player. --disable sneak glitch for the player.
local function noglitch(name, param) local function noglitch(name, param)
local player = minetest.get_player_by_name(param) local player = minetest.get_player_by_name(param)
local privs=minetest.get_player_privs(param) local privs=minetest.get_player_privs(param)
privs.unglitched=true privs.unglitched=true
minetest.set_player_privs(param,privs) minetest.set_player_privs(param,privs)
player:set_physics_override({sneak = false}) player:set_physics_override({sneak = false})
end end
minetest.register_chatcommand("noglitch", { minetest.register_chatcommand("noglitch", {