Don't send a join message in singleplayer mode.
authorred-001 <red-001@openmailbox.org>
Sat, 27 Aug 2016 23:13:41 +0000 (00:13 +0100)
committersfan5 <sfan5@live.de>
Fri, 2 Dec 2016 23:13:02 +0000 (00:13 +0100)
builtin/game/misc.lua

index 040016333286d0f8147c68692d5623ea28d8554f..7caa9e7baab4fedaae7453c8b79e7873db7d4b5e 100644 (file)
@@ -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)