Class BridgeUpdateCloudPlayerEvent

java.lang.Object
eu.cloudnetservice.driver.event.Event
eu.cloudnetservice.modules.bridge.event.BridgeUpdateCloudPlayerEvent

public final class BridgeUpdateCloudPlayerEvent extends eu.cloudnetservice.driver.event.Event
Called after a cloud player was updated in both the database and all caches. This event is called both on all nodes in the cluster and all services running the bridge.
Since:
4.0
  • Field Details

  • Constructor Details

    • BridgeUpdateCloudPlayerEvent

      public BridgeUpdateCloudPlayerEvent(@NonNull @NonNull CloudPlayer cloudPlayer)
      Constructs a new cloud player update event with the given cloud player.
      Parameters:
      cloudPlayer - the cloud player that was updated.
      Throws:
      NullPointerException - if the given cloud player is null.
  • Method Details

    • cloudPlayer

      @NonNull public @NonNull CloudPlayer cloudPlayer()
      Gets the cloud player that was updated.
      Returns:
      the updated cloud player.