New method to allow players on server to be retreived
martinohanlon opened this issue · comments
To supplement the multiplayer functions it would be useful to have a call which returns the players on a server.
First thoughts are it should be something like world.getPlayers(), which would return all the players registered on a server, should probably return entityId, name, world.
getPlayerEntityIds returns all the players, add getPlayerEntityId(playerName), it would also be useful to have a getPlayer function which returned information about the player such as their name (should this just be getPlayerName?).
Added getPlayerId (getPlayerEntityId) in version 1.2