Don't send a join message in singleplayer mode.

This commit is contained in:
red-001 2016-08-28 00:13:41 +01:00 committed by sfan5
parent 8b63fbefba
commit fb1406bdff

@ -89,7 +89,9 @@ local player_list = {}
core.register_on_joinplayer(function(player)
local player_name = player:get_player_name()
player_list[player_name] = player
core.chat_send_all("*** " .. player_name .. " joined the game.")
if not minetest.is_singleplayer() then
core.chat_send_all("*** " .. player_name .. " joined the game.")
end
end)
core.register_on_leaveplayer(function(player, timed_out)