mirror of
https://github.com/minetest-mods/teleport-request.git
synced 2025-01-06 13:07:33 +01:00
Tweaked code
This commit is contained in:
parent
2551dd6f9a
commit
6f407e1629
2
init.lua
2
init.lua
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user