save.txt 278 Bytes
def save(id, players, mud):
    # send the player back the list of possible commands
    mud.send_message(id, "Saving...")
    utils.save_object_to_file(players[id], "players/{}.json".format(players[id]["name"]))
    mud.send_message(id, "Save complete")

save(id, players, mud)