Skip to content

Instantly share code, notes, and snippets.

@wsor4035
Created July 20, 2021 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wsor4035/3c4ac1330c84f90f62c9793c9d52a926 to your computer and use it in GitHub Desktop.
Save wsor4035/3c4ac1330c84f90f62c9793c9d52a926 to your computer and use it in GitHub Desktop.
minetest.register_chatcommand("who_exists", {
description = "find people that exist",
func = function(name, param)
local ptable = {}
for _, player in ipairs(minetest.get_connected_players()) do
table.insert(ptable, player:get_player_name())
end
minetest.chat_send_player(name, "Connected players: " .. table.concat(ptable, ", "))
end,
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment