Klasse 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.
Siehe auch:
  • Methodendetails

    • getSpawnPosition

      public Vector3f getSpawnPosition()
      Gets the spawn coordinates (where the player will spawn this time).
      Gibt zurück:
      the coordinates where the player will spawn.
    • getSpawnRotation

      public Quaternion getSpawnRotation()
      Gets the spawn rotation.
      Gibt zurück:
      the spawn rotation.