public class PlayerInitialSpawnEvent extends PlayerEvent
Event.Result
player
Constructor and Description |
---|
PlayerInitialSpawnEvent(Player player,
Location spawnLocation) |
Modifier and Type | Method and Description |
---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
Location |
getSpawnLocation()
Gets the current spawn location
|
void |
setSpawnLocation(Location spawnLocation)
Sets the new spawn location
|
getPlayer
callEvent, getEventName, isAsynchronous
public Location getSpawnLocation()
public void setSpawnLocation(Location spawnLocation)
spawnLocation
- new location for the spawnpublic HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2021. All rights reserved.