public class PlayerSpawnLocationEvent extends PlayerEvent
Event.Resultplayer| コンストラクタと説明 |
|---|
PlayerSpawnLocationEvent(Player who,
Location spawnLocation) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
Location |
getSpawnLocation()
Gets player's spawn location.
|
void |
setSpawnLocation(Location location)
Sets player's spawn location.
|
getPlayergetEventName, isAsynchronouspublic Location getSpawnLocation()
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.public void setSpawnLocation(Location location)
location - the spawn locationpublic HandlerList getHandlers()
getHandlers クラス内 Eventpublic static HandlerList getHandlerList()
Copyright © 2016. All rights reserved.