Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
1package org.bukkit.event.world;
2
3import org.bukkit.Location;
4import org.bukkit.World;
5
6/**
7 * An event that is called when a world's spawn changes. The
8 * world's previous spawn location is included.
9 */
10public class SpawnChangeEvent extends WorldEvent {
11 private Location previousLocation;
12
13 public SpawnChangeEvent(World world, Location previousLocation) {
14 super(Type.SPAWN_CHANGE, world);
15 this.previousLocation = previousLocation;
16 }
17
18 /**
19 * Gets the previous spawn location
20 *
21 * @return Location that used to be spawn
22 */
23 public Location getPreviousLocation() {
24 return previousLocation;
25 }
26}