From: red-001 Date: Sat, 27 Aug 2016 23:13:41 +0000 (+0100) Subject: Don't send a join message in singleplayer mode. X-Git-Tag: 0.4.15~91 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fb1406bdff6b906ae5a04c34fe58cc57aae6d31e;p=oweals%2Fminetest.git Don't send a join message in singleplayer mode. --- diff --git a/builtin/game/misc.lua b/builtin/game/misc.lua index 040016333..7caa9e7ba 100644 --- a/builtin/game/misc.lua +++ b/builtin/game/misc.lua @@ -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)