Class BridgeServerPlayerDisconnectEvent
java.lang.Object
eu.cloudnetservice.driver.event.Event
eu.cloudnetservice.modules.bridge.event.BridgeServerPlayerDisconnectEvent
public final class BridgeServerPlayerDisconnectEvent
extends eu.cloudnetservice.driver.event.Event
Called when a cloud player disconnects from any downstream service but before the player connected to a new service.
This event is called both on all nodes in the cluster and all services running the bridge.
- Since:
- 4.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBridgeServerPlayerDisconnectEvent(@NonNull CloudPlayer cloudPlayer, @NonNull NetworkServiceInfo serviceInfo) Constructs a new player server disconnect event for the given cloud player and the service the player disconnected from. -
Method Summary
Modifier and TypeMethodDescriptionGets the player that disconnected from a downstream service.service()Gets the network service info of the service the player disconnected from.
-
Field Details
-
cloudPlayer
-
serviceInfo
-
-
Constructor Details
-
BridgeServerPlayerDisconnectEvent
public BridgeServerPlayerDisconnectEvent(@NonNull @NonNull CloudPlayer cloudPlayer, @NonNull @NonNull NetworkServiceInfo serviceInfo) Constructs a new player server disconnect event for the given cloud player and the service the player disconnected from.- Parameters:
cloudPlayer- the player that disconnected.serviceInfo- the service the player disconnected from.- Throws:
NullPointerException- if the given player or service info is null.
-
-
Method Details
-
cloudPlayer
Gets the player that disconnected from a downstream service.- Returns:
- the player that disconnected.
-
service
Gets the network service info of the service the player disconnected from.- Returns:
- the network service info of the service.
-