Class PlayerLeaveWorldEvent

java.lang.Object
de.ellpeck.rockbottom.api.event.Event
de.ellpeck.rockbottom.api.event.impl.PlayerLeaveWorldEvent

public final class PlayerLeaveWorldEvent extends Event
This event is fired when an AbstractPlayerEntity disconnects from a world. The isConnected variable determines if the player was part of a server that they didn't host. The event cannot be cancelled.
  • Field Details

  • Constructor Details

    • PlayerLeaveWorldEvent

      public PlayerLeaveWorldEvent(AbstractPlayerEntity player, boolean isConnected)