projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b63fbe
)
Don't send a join message in singleplayer mode.
author
red-001
<red-001@openmailbox.org>
Sat, 27 Aug 2016 23:13:41 +0000
(
00:13
+0100)
committer
sfan5
<sfan5@live.de>
Fri, 2 Dec 2016 23:13:02 +0000
(
00:13
+0100)
builtin/game/misc.lua
patch
|
blob
|
history
diff --git
a/builtin/game/misc.lua
b/builtin/game/misc.lua
index 040016333286d0f8147c68692d5623ea28d8554f..7caa9e7baab4fedaae7453c8b79e7873db7d4b5e 100644
(file)
--- 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)