fix register_on_joinplayer last_login
This commit is contained in:
parent
1f0271099e
commit
047758767a
2
init.lua
2
init.lua
|
@ -251,7 +251,7 @@ minetest.register_on_shutdown(function()
|
||||||
MatrixChat:logout()
|
MatrixChat:logout()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
minetest.register_on_joinplayer(function(player)
|
minetest.register_on_joinplayer(function(player, last_login)
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
MatrixChat:send("*** "..name.." joined the game"..(last_login == nil and " for the first time" or ""))
|
MatrixChat:send("*** "..name.." joined the game"..(last_login == nil and " for the first time" or ""))
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue