Tweaked code

This commit is contained in:
Panquesito7 2019-07-25 15:46:52 -05:00 committed by GitHub
parent 2551dd6f9a
commit 6f407e1629
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -228,7 +228,6 @@ function tpc_send(player, coordinates)
if minetest.check_player_privs(pname, {tp_admin=true}) then
tpc_teleport_player(player)
minetest.chat_send_player(player, S("Teleporting to: @1, @2, @3", posx, posy, posz))
--parti2(target_coords)
else
if minetest.check_player_privs(pname, {tp_tpc = true}) then
local protected = minetest.is_protected(target_coords,pname)
@ -241,7 +240,6 @@ function tpc_send(player, coordinates)
end
tpc_teleport_player(player)
minetest.chat_send_player(player, S("Teleporting to: @1, @2, @3", posx, posy, posz))
--parti2(target_coords)
else
minetest.chat_send_player(player, S("Error: You do not have permission to teleport to coordinates."))
return