Simple enough to explain; the events work work just like the item saving/loading events, except it saves your current position and then loads it.
One example of this would be to use command and teleport events, having players able to say /cmd shop to teleport to the shop. Before teleporting, their position would be saved and then loaded when they leave the shop.