From fb1406bdff6b906ae5a04c34fe58cc57aae6d31e Mon Sep 17 00:00:00 2001 From: red-001 Date: Sun, 28 Aug 2016 00:13:41 +0100 Subject: Don't send a join message in singleplayer mode. --- builtin/game/misc.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'builtin/game') 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) -- cgit v1.2.3