Package net.md_5.bungee.api.event

# Class PlayerDisconnectEvent

java.lang.Object
net.md_5.bungee.api.plugin.Event
net.md_5.bungee.api.event.PlayerDisconnectEvent

public class PlayerDisconnectEvent extends Event
Called when a player has left the proxy, it is not safe to call any methods that perform an action on the passed player instance.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PlayerDisconnectEvent(ProxiedPlayer player)`
  Creates a new `PlayerDisconnectEvent` instance.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected boolean`
  `canEqual(Object other)`
  `boolean`
  `equals(Object o)`
  `ProxiedPlayer`
  `getPlayer()`
  Player disconnecting.
  `int`
  `hashCode()`
  `String`
  `toString()`

  ### Methods inherited from class net.md_5.bungee.api.plugin.Event

  `postCall`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### PlayerDisconnectEvent

    public PlayerDisconnectEvent(ProxiedPlayer player)
    Creates a new `PlayerDisconnectEvent` instance.
    Parameters:
      `player` - Player disconnecting.

- ## Method Details

  - ### getPlayer

    public ProxiedPlayer getPlayer()
    Player disconnecting.

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### equals

    public boolean equals(Object o)
    Overrides:
      `equals` in class `Object`

  - ### canEqual

    protected boolean canEqual(Object other)

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`