Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function countPlayers()
- local players = minetest.get_player_names()
- local count = 0
- if players == nil then
- count = 0
- else
- for name in pairs(players) do
- count = count + 1
- end
- end
- return count
- end
Advertisement
Add Comment
Please, Sign In to add comment