From 39f5cba27eef35877c91291f518974f34130fcb6 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Tue, 31 Jan 2017 19:39:31 -0500 Subject: Huge update - lots of mods: areas, biome_lib, blox, bobblocks, boost_cart, homedecor, mobs, coloredwood, ilights, inbox, item_tweaks, moreblocks, moreores, pipeworks, plasticbox, signs_lib, stainedglass, roads, unifieddyes, vines, worldedit, xban2, maybe some others I didn't think about ;-) --- teleport_request/init.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'teleport_request') diff --git a/teleport_request/init.lua b/teleport_request/init.lua index a586769..cf843b0 100644 --- a/teleport_request/init.lua +++ b/teleport_request/init.lua @@ -136,7 +136,7 @@ local function tpc_send(player,coordinates) minetest.chat_send_player(player, 'Teleporting to '..posx..','..posy..','..posz) pname:setpos(find_free_position_near(target_coords)) minetest.sound_play("whoosh", {pos = target_coords, gain = 0.5, max_hear_distance = 10}) - parti2(target_coords) + --parti2(target_coords) else if minetest.check_player_privs(pname, {tp_tpc=true}) then local protected = minetest.is_protected(target_coords,pname) @@ -150,7 +150,7 @@ local function tpc_send(player,coordinates) minetest.chat_send_player(player, 'Teleporting to '..posx..','..posy..','..posz) pname:setpos(find_free_position_near(target_coords)) minetest.sound_play("whoosh", {pos = target_coords, gain = 0.5, max_hear_distance = 10}) - parti2(target_coords) + --parti2(target_coords) else minetest.chat_send_player(player, "Error: You do not have permission to teleport to coordinates.") return @@ -209,7 +209,7 @@ local function tpr_accept(name, param) local target_coords=source:getpos() target:setpos(find_free_position_near(target_coords)) minetest.sound_play("whoosh", {pos = target_coords, gain = 0.5, max_hear_distance = 10}) - parti2(target_coords) + --parti2(target_coords) end -- Teleport Jump - Relative Position Teleportation by number of nodes @@ -237,17 +237,17 @@ local function tpj(player,param) target_coords["x"] = target_coords["x"] + tonumber(args[2]) pname:setpos(find_free_position_near(target_coords)) minetest.sound_play("whoosh", {pos = target_coords, gain = 0.5, max_hear_distance = 10}) - parti2(target_coords) + --parti2(target_coords) elseif args[1] == "y" then target_coords["y"] = target_coords["y"] + tonumber(args[2]) pname:setpos(find_free_position_near(target_coords)) minetest.sound_play("whoosh", {pos = target_coords, gain = 0.5, max_hear_distance = 10}) - parti2(target_coords) + --parti2(target_coords) elseif args[1] == "z" then target_coords["z"] = target_coords["z"] + tonumber(args[2]) pname:setpos(find_free_position_near(target_coords)) minetest.sound_play("whoosh", {pos = target_coords, gain = 0.5, max_hear_distance = 10}) - parti2(target_coords) + --parti2(target_coords) else minetest.chat_send_player(player,"Not a valid axis. Valid options are X, Y or Z.") end @@ -304,13 +304,13 @@ minetest.register_chatcommand("tpc", { minetest.register_chatcommand("tpj", { description = "Teleport to relative position", params = " | leave empty to see help message", - privs = {interact=true}, + privs = {interact=true,tp_tpc=true}, func = tpj }) minetest.register_chatcommand("tpe", { description = "Evade Enemy", - privs = {interact=true}, + privs = {interact=true,tp_tpc=true}, func = tpe }) -- cgit v1.2.3