Class PlayerDespawned

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

public class PlayerDespawned extends Object
An event fired when a player despawns from the game world.

This event is triggered when another player leaves the visible game world. This can occur when a player logs out, teleports away, moves out of the visible range, or during scene transitions.

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

See Also:
  • Constructor Details

    • PlayerDespawned

      public PlayerDespawned()
  • Method Details

    • getActor

      public IActor getActor()
      Gets the despawned 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