minetest.get_connected_players

From Minetest Developer Wiki
Jump to: navigation, search

Syntax

Description

Returns a list of ObjectRefs.

Example

for _,player in ipairs(minetest.get_connected_players()) do
	local name = player:get_player_name()
	minetest.chat_send_player(name, "Hello " .. name)
end
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox