mirror of
https://github.com/minetest-mods/teleport-request.git
synced 2024-08-20 05:14:05 +02:00
Removed emoticons
This commit is contained in:
parent
05018b636a
commit
4763c53cb8
12
init.lua
12
init.lua
@ -18,9 +18,9 @@ local function tpr_send(name, param)
|
|||||||
|
|
||||||
--Register variables
|
--Register variables
|
||||||
|
|
||||||
sender = name
|
local sender = name
|
||||||
receiver = param
|
local receiver = param
|
||||||
value_carryover = param
|
local value_carryover = param
|
||||||
|
|
||||||
--Check for empty parameter
|
--Check for empty parameter
|
||||||
if receiver == "" then
|
if receiver == "" then
|
||||||
@ -86,12 +86,12 @@ function tpr_deny(name)
|
|||||||
sender = tpr_list[value_carryover]
|
sender = tpr_list[value_carryover]
|
||||||
if tpr_list[value_carryover] ~= nil then
|
if tpr_list[value_carryover] ~= nil then
|
||||||
tpr_list[value_carryover] = nil
|
tpr_list[value_carryover] = nil
|
||||||
minetest.chat_send_player(sender, 'Teleport request denied :C')
|
minetest.chat_send_player(sender, 'Teleport request denied.')
|
||||||
end
|
end
|
||||||
sender2 = tphr_list[value_carryover2]
|
sender2 = tphr_list[value_carryover2]
|
||||||
if tphr_list[value_carryover2] ~= nil then
|
if tphr_list[value_carryover2] ~= nil then
|
||||||
tphr_list[value_carryover2] = nil
|
tphr_list[value_carryover2] = nil
|
||||||
minetest.chat_send_player(sender2, 'Teleport request denied :C')
|
minetest.chat_send_player(sender2, 'Teleport request denied.')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -198,7 +198,7 @@ local function tpr_accept(name, param)
|
|||||||
|
|
||||||
-- Set name values to nil to prevent re-teleporting on the same request.
|
-- Set name values to nil to prevent re-teleporting on the same request.
|
||||||
tphr_list[name] = nil
|
tphr_list[name] = nil
|
||||||
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user