mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
Don't send a join message in singleplayer mode.
This commit is contained in:
parent
8b63fbefba
commit
fb1406bdff
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user