aboutsummaryrefslogtreecommitdiff
path: root/builtin/game
diff options
context:
space:
mode:
authorred-001 <red-001@openmailbox.org>2016-08-28 00:13:41 +0100
committersfan5 <sfan5@live.de>2016-12-03 00:13:02 +0100
commitfb1406bdff6b906ae5a04c34fe58cc57aae6d31e (patch)
tree0f4a5c7a6f042153803a585b6a7cf5b8e251d9e6 /builtin/game
parent8b63fbefba7f592299328d6d24b8c35a6c2417da (diff)
downloadminetest-fb1406bdff6b906ae5a04c34fe58cc57aae6d31e.tar.gz
minetest-fb1406bdff6b906ae5a04c34fe58cc57aae6d31e.tar.bz2
minetest-fb1406bdff6b906ae5a04c34fe58cc57aae6d31e.zip
Don't send a join message in singleplayer mode.
Diffstat (limited to 'builtin/game')
-rw-r--r--builtin/game/misc.lua4
1 files changed, 3 insertions, 1 deletions
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)