Class PlayerDisconnectEvent

java.lang.Object
net.minestom.server.event.Event
net.minestom.server.event.player.PlayerDisconnectEvent

public class PlayerDisconnectEvent
extends Event
Called when a player disconnect.
  • Constructor Summary

    Constructors 
    Constructor Description
    PlayerDisconnectEvent​(Player player)  
  • Method Summary

    Modifier and Type Method Description
    Player getPlayer()
    Gets the player who is disconnecting.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getPlayer

      @NotNull public Player getPlayer()
      Gets the player who is disconnecting.
      Returns:
      the player