added saving player data to server proxy. this prevents data loss on death
added event handler for death event and joinEvent (dying and respawning)