Location loc = Util.GetLocationFromString(Util.GetStringFromLocation(player.getLocation()));
GameState gs = GameStateData.Load(me.getMap(), player, false);
if (gs != null)
{
if (gs.canRespawn())
{
World world = Current.LoadWorld(gs, player);
if (gs.getMap().getResetInventory())
{
gs.toggleInventory();