forked from Mirrorlandia_minetest/minetest
Don't send a join message in singleplayer mode.
This commit is contained in:
parent
8b63fbefba
commit
fb1406bdff
@ -89,7 +89,9 @@ local player_list = {}
|
|||||||
core.register_on_joinplayer(function(player)
|
core.register_on_joinplayer(function(player)
|
||||||
local player_name = player:get_player_name()
|
local player_name = player:get_player_name()
|
||||||
player_list[player_name] = player
|
player_list[player_name] = player
|
||||||
|
if not minetest.is_singleplayer() then
|
||||||
core.chat_send_all("*** " .. player_name .. " joined the game.")
|
core.chat_send_all("*** " .. player_name .. " joined the game.")
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
core.register_on_leaveplayer(function(player, timed_out)
|
core.register_on_leaveplayer(function(player, timed_out)
|
||||||
|
Loading…
Reference in New Issue
Block a user