Requesting a partner
I have this mod that i cannot figure out i spent a very low amount of time working on it but it is a mod that welcomes the player to the server then shows them a list of who is online I would like some help.
I have tried other code like.
Still cant figure it out to list the online players.
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.