mirror of
https://github.com/minetest-mods/teleport-request.git
synced 2024-08-21 05:44:06 +02:00
Minor improvements to the UX.
This commit is contained in:
parent
89b1021275
commit
55a86adc76
4
init.lua
4
init.lua
@ -64,8 +64,8 @@ local function tpr_send(sender, receiver)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
--If paremeter is valid, Send teleport message and set the table.
|
|
||||||
if not minetest.get_player_by_name(receiver) then
|
if not minetest.get_player_by_name(receiver) then
|
||||||
|
minetest.chat_send_player(sender, "There is no player by that name. Keep in mind this is case sensitive, and the player must be online.")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -88,8 +88,8 @@ local function tphr_send(sender, receiver)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
--If paremeter is valid, Send teleport message and set the table.
|
|
||||||
if not minetest.get_player_by_name(receiver) then
|
if not minetest.get_player_by_name(receiver) then
|
||||||
|
minetest.chat_send_player(sender, "There is no player by that name. Keep in mind this is case sensitive, and the player must be online.")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user