public class PlayerSpawnLocationEvent extends PlayerEvent
Called when player is about to spawn in a world after joining the server.
Gets player's spawn location. If the player
OfflinePlayer.hasPlayedBefore(), it's going to default to the location inside player.dat file. For new players, the default spawn location is spawn of the main Bukkit world.
- the spawn location
Sets player's spawn location.
location- the spawn location