def addPlayer(settings):
_validate(settings)<EOL>player = PlayerRecord(settings)<EOL>player.save()<EOL>getKnownPlayers()[player.name] = player<EOL>return player<EOL>
define a new PlayerRecord setting and save to disk file