From e652b371701a2d5cb7323d4eface1eae8a8c7df1 Mon Sep 17 00:00:00 2001 From: luk3yx Date: Mon, 12 Aug 2019 07:39:56 +1200 Subject: [PATCH 1/2] Fix syntax error. --- init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/init.lua b/init.lua index e95b02a..8b72a39 100644 --- a/init.lua +++ b/init.lua @@ -381,8 +381,7 @@ end -- Teleport Accept Systems function tp.tpr_accept(name, param) -- Check to prevent constant teleporting. - if not tp.tpr_list[name] - and not tp.tphr_list[name] + if not tp.tpr_list[name] and not tp.tphr_list[name] then 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 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) From e57cd7636765f4227d9e247d190aa321c9f46c4c Mon Sep 17 00:00:00 2001 From: Panquesito7 <51391473+Panquesito7@users.noreply.github.com> Date: Sat, 17 Aug 2019 01:48:02 -0500 Subject: [PATCH 2/2] Fix another bug (#1) Fixes BlockySurvival/issue-tracker#133. --- README.md | 2 +- init.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f280925..2042c6d 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ tp_enable_tpp_command = false ``` Those values are the default values of the mod. You can also go to your Minetest, Settings tab, All settings, Mods, and you'll find `tpr` there. -Or another way to do it, is changing the values in `settingstypes.txt`. +Or another way to do it, is changing the values in `settingtypes.txt`. ## Installation - Unzip the archive, rename the folder to tpr and diff --git a/init.lua b/init.lua index 8b72a39..2362f3c 100644 --- a/init.lua +++ b/init.lua @@ -194,7 +194,7 @@ function tp.tpr_send(sender, receiver) chat2.send_message(minetest.get_player_by_name(sender), S("Teleport request sent! It will timeout in @1 seconds", tp.timeout_delay), 0xFFFFFF) end minetest.chat_send_player(receiver, S("@1 is requesting to teleport to you. /tpy to accept", sender)) - minetest.chat_send_player(sender, S("Teleport request sent! It will timeout in @1 seconds", timeout_delay)) + minetest.chat_send_player(sender, S("Teleport request sent! It will timeout in @1 seconds", tp.timeout_delay)) -- Write name values to list and clear old values. tp.tpr_list[receiver] = sender -- Teleport timeout delay @@ -266,7 +266,7 @@ function tp.tphr_send(sender, receiver) chat2.send_message(minetest.get_player_by_name(sender), S("Teleport request sent! It will timeout in @1 seconds", tp.timeout_delay), 0xFFFFFF) end minetest.chat_send_player(receiver, S("@1 is requesting that you teleport to them. /tpy to accept; /tpn to deny", sender)) - minetest.chat_send_player(sender, S("Teleport request sent! It will timeout in @1 seconds", timeout_delay)) + minetest.chat_send_player(sender, S("Teleport request sent! It will timeout in @1 seconds", tp.timeout_delay)) -- Write name values to list and clear old values. tp.tphr_list[receiver] = sender -- Teleport timeout delay