Players

The players attribute of the Luanti object provides access to all online players. It behaves like a list and allows you to get a specific Player object by their name.

This is implemented via the PlayerIterable class.

Example:
>>> # Get a list of all online player names
>>> lt.players.list()
['miney', 'Player2']
>>>
>>> # Access a specific player
>>> p = lt.players.miney
>>> p.position
Point(x=10, y=5, z=-20)
class miney.player.PlayerIterable(luanti: Luanti, online_players: list = None)[source]

Player, implemented as iterable for easy autocomplete in the interactive shell