public class PlayerInitialSpawnEvent extends PlayerEvent
Event.Resultplayer| 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
|
getPlayercallEvent, getEventName, isAsynchronous@NotNull public Location getSpawnLocation()
public void setSpawnLocation(@NotNull
Location spawnLocation)
spawnLocation - new location for the spawn@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
Copyright © 2019. All rights reserved.