save.txt
303 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")
return True
save(id, players, mud)
del save