Class DisconnectEventImpl
- java.lang.Object
-
- com.velocitypowered.api.event.player.DisconnectEventImpl
-
- All Implemented Interfaces:
Event,DisconnectEvent
public final class DisconnectEventImpl extends Object implements DisconnectEvent
This event is fired when a player disconnects from the proxy. Operations on the provided player, aside from basic data retrieval operations, may behave in undefined ways.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.velocitypowered.api.event.player.DisconnectEvent
DisconnectEvent.LoginStatus
-
-
Constructor Summary
Constructors Constructor Description DisconnectEventImpl(Player player, DisconnectEvent.LoginStatus loginStatus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DisconnectEvent.LoginStatusloginStatus()Playerplayer()StringtoString()
-
-
-
Constructor Detail
-
DisconnectEventImpl
public DisconnectEventImpl(Player player, DisconnectEvent.LoginStatus loginStatus)
-
-
Method Detail
-
player
public Player player()
- Specified by:
playerin interfaceDisconnectEvent
-
loginStatus
public DisconnectEvent.LoginStatus loginStatus()
- Specified by:
loginStatusin interfaceDisconnectEvent
-
-