Class BridgeServerPlayerLoginEvent
java.lang.Object
eu.cloudnetservice.driver.event.Event
eu.cloudnetservice.modules.bridge.event.BridgeServerPlayerLoginEvent
public final class BridgeServerPlayerLoginEvent
extends eu.cloudnetservice.driver.event.Event
Called when a cloud player connects to a downstream 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
ConstructorsConstructorDescriptionBridgeServerPlayerLoginEvent(@NonNull CloudPlayer cloudPlayer, @NonNull NetworkPlayerServerInfo serverInfo) Constructs a new player server login event for the given cloud player and the service the player connected to. -
Method Summary
Modifier and TypeMethodDescriptionGets the player that connected to the given downstream service.service()Gets the network service info of the service the player connected tp.
-
Field Details
-
cloudPlayer
-
serverInfo
-
-
Constructor Details
-
BridgeServerPlayerLoginEvent
public BridgeServerPlayerLoginEvent(@NonNull @NonNull CloudPlayer cloudPlayer, @NonNull @NonNull NetworkPlayerServerInfo serverInfo) Constructs a new player server login event for the given cloud player and the service the player connected to.- Parameters:
cloudPlayer- the player that disconnected.serverInfo- the service the player connected to.- Throws:
NullPointerException- if the given player or service info is null.
-
-
Method Details
-
cloudPlayer
Gets the player that connected to the given downstream service.- Returns:
- the player that connected to downstream service.
-
service
Gets the network service info of the service the player connected tp.- Returns:
- the network service info of the service.
-