mirror of
https://github.com/minetest-mods/teleport-request.git
synced 2025-01-04 12:07:33 +01:00
Fix TPY messages
This commit is contained in:
parent
30c74a92e6
commit
c4fc42fcb1
@ -447,12 +447,27 @@ function tp.tpr_accept(name)
|
||||
end
|
||||
|
||||
tp.tpr_teleport_player()
|
||||
minetest.chat_send_player(name2, S("Request Accepted!"))
|
||||
|
||||
minetest.chat_send_player(name, chatmsg)
|
||||
if minetest.get_modpath("chat2") then
|
||||
chat2.send_message(minetest.get_player_by_name(name2), S("Request Accepted!"), 0xFFFFFF)
|
||||
chat2.send_message(minetest.get_player_by_name(name), chatmsg, 0xFFFFFF)
|
||||
end
|
||||
|
||||
if minetest.check_player_privs(name2, {tp_admin = true}) == false then
|
||||
minetest.chat_send_player(name2, S("Request Accepted!"))
|
||||
if minetest.get_modpath("chat2") then
|
||||
chat2.send_message(minetest.get_player_by_name(name2), S("Request Accepted!"), 0xFFFFFF)
|
||||
end
|
||||
|
||||
else
|
||||
if tp.enable_immediate_teleport then return end
|
||||
|
||||
minetest.chat_send_player(name2, S("Request Accepted!"))
|
||||
if minetest.get_modpath("chat2") then
|
||||
chat2.send_message(minetest.get_player_by_name(name2), S("Request Accepted!"), 0xFFFFFF)
|
||||
end
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
-- Teleport Jump - Relative Position Teleportation by number of nodes
|
||||
|
Loading…
Reference in New Issue
Block a user