Skip to content

Commit

Permalink
Don't send a join message in singleplayer mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
red-001 authored and sfan5 committed Dec 2, 2016
1 parent 8b63fbe commit fb1406b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion builtin/game/misc.lua
Expand Up @@ -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)
Expand Down

0 comments on commit fb1406b

Please sign in to comment.