mirror of
https://github.com/minetest-mods/teleport-request.git
synced 2025-01-08 22:17:27 +01:00
Merge pull request #2 from indriApollo/master
make var p local to avoid warnings | Fix description of tphr
This commit is contained in:
commit
6349d9b02e
6
init.lua
6
init.lua
@ -134,8 +134,8 @@ local function tpr_accept(name, param)
|
|||||||
minetest.chat_send_player(name2, "Request Accepted!")
|
minetest.chat_send_player(name2, "Request Accepted!")
|
||||||
minetest.chat_send_player(name, chatmsg)
|
minetest.chat_send_player(name, chatmsg)
|
||||||
|
|
||||||
p = source:getpos()
|
local p = source:getpos()
|
||||||
p = find_free_position_near(p)
|
local p = find_free_position_near(p)
|
||||||
target:setpos(p)
|
target:setpos(p)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -159,7 +159,7 @@ minetest.register_chatcommand("tpr", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_chatcommand("tphr", {
|
minetest.register_chatcommand("tphr", {
|
||||||
description = "Request teleport to another player",
|
description = "Request player to teleport to you",
|
||||||
params = "<playername> | leave playername empty to see help message",
|
params = "<playername> | leave playername empty to see help message",
|
||||||
privs = {interact=true},
|
privs = {interact=true},
|
||||||
func = tphr_send
|
func = tphr_send
|
||||||
|
Loading…
Reference in New Issue
Block a user