Class PlayerSpawnEvent
java.lang.Object
net.risingworld.api.events.Event
net.risingworld.api.events.player.PlayerEvent
net.risingworld.api.events.player.PlayerSpawnEvent
Called when a player spawns after connecting. This event is only called once
per player. It is not called when the player respawns (after dying), for example.
Unlike the
Unlike the
PlayerConnectEvent, this event is called when the player actually
spawns, i.e when the loading process is completed.- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the spawn coordinates (where the player will spawn this time).Gets the spawn rotation.Methods inherited from class net.risingworld.api.events.player.PlayerEvent
getPlayer
-
Method Details
-
getSpawnPosition
Gets the spawn coordinates (where the player will spawn this time).- Returns:
- the coordinates where the player will spawn.
-
getSpawnRotation
Gets the spawn rotation.- Returns:
- the spawn rotation.
-