public class PlayerInitialSpawnEvent extends PlayerEvent
Event.Result
player
Constructor | Description |
---|---|
PlayerInitialSpawnEvent(Player player,
Location spawnLocation) |
Modifier and Type | Method | Description |
---|---|---|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
Location |
getSpawnLocation() |
Gets the current spawn location
|
void |
setSpawnLocation(Location spawnLocation) |
Sets the new spawn location
|
callEvent, getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPlayer
@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 © 2020. All rights reserved.