Fix syntax error.

This commit is contained in:
luk3yx 2019-08-12 07:39:56 +12:00
parent b5a4320c2e
commit e652b37170

View File

@ -381,8 +381,7 @@ end
-- Teleport Accept Systems -- Teleport Accept Systems
function tp.tpr_accept(name, param) function tp.tpr_accept(name, param)
-- Check to prevent constant teleporting. -- Check to prevent constant teleporting.
if not tp.tpr_list[name] if not tp.tpr_list[name] and not tp.tphr_list[name] then
and not tp.tphr_list[name]
minetest.chat_send_player(name, S("Usage: /tpy allows you to accept teleport requests sent to you by other players")) minetest.chat_send_player(name, S("Usage: /tpy allows you to accept teleport requests sent to you by other players"))
if minetest.get_modpath("chat2") then if minetest.get_modpath("chat2") then
chat2.send_message(minetest.get_player_by_name(name), S("Usage: /tpy allows you to accept teleport requests sent to you by other players"), 0xFFFFFF) chat2.send_message(minetest.get_player_by_name(name), S("Usage: /tpy allows you to accept teleport requests sent to you by other players"), 0xFFFFFF)