Now that chat messages know who sent them, I'd like to have a method to get a player by their name, otherwise the player name is relatively useless.
Alternatively the message could also know the id of the player, so that we can have the old route.
The last option would be that the user themselves has to create a mapping playername -> index, but this would be a pretty advanced thing to require for an educational library.
f3f6c83
Now that chat messages know who sent them, I'd like to have a method to get a player by their name, otherwise the player name is relatively useless.
Alternatively the message could also know the id of the player, so that we can have the old route.
The last option would be that the user themselves has to create a mapping playername -> index, but this would be a pretty advanced thing to require for an educational library.
f3f6c83