mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-10-31 07:25:22 +01:00 
			
		
		
		
	Don't send a join message in singleplayer mode.
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user