Class PlayerSpawned

java.lang.Object
net.storm.api.events.PlayerSpawned

public class PlayerSpawned extends Object
An event fired when a player spawns in the game world.

This event is triggered when another player becomes visible in the game world. This can occur when a player logs in nearby, enters the visible range, teleports into the area, or during scene loading.

Note: This event is fired for other players, not the local player.

See Also:
  • Constructor Details

    • PlayerSpawned

      public PlayerSpawned()
  • Method Details

    • getActor

      public IActor getActor()
      Gets the spawned player as a generic actor.

      This is a convenience method for code that works with actors generically rather than specifically with players.

      Returns:
      the player as an IActor