Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_on_joinplayer(function(player)
minetest.chat_send_all(" Welcome to the server "..player:get_player_name().."!")
}
I have tried other code like.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
for _,player in ipairs(minetest.get_connected_players()) do
local name = player:get_player_name()
minetest.chat_send_player(name, "Hello " .. name)
end
Still cant figure it out to list the online players.