Class PlayerSpawnEvent


public final class PlayerSpawnEvent extends PlayerEvent
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 PlayerConnectEvent, this event is called when the player actually spawns, i.e when the loading process is completed.
See Also:
  • Method Details

    • getSpawnPosition

      public Vector3f getSpawnPosition()
      Gets the spawn coordinates (where the player will spawn this time).
      Returns:
      the coordinates where the player will spawn.
    • getSpawnRotation

      public Quaternion getSpawnRotation()
      Gets the spawn rotation.
      Returns:
      the spawn rotation.