Class BridgeDeleteCloudOfflinePlayerEvent

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

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

  • Constructor Details

    • BridgeDeleteCloudOfflinePlayerEvent

      public BridgeDeleteCloudOfflinePlayerEvent(@NonNull @NonNull CloudOfflinePlayer cloudPlayer)
      Constructs a cloud player delete event with the given cloud player.
      Parameters:
      cloudPlayer - the player that was deleted.
      Throws:
      NullPointerException - if the given player is null.
  • Method Details

    • cloudOfflinePlayer

      @NonNull public @NonNull CloudOfflinePlayer cloudOfflinePlayer()
      Gets the cloud offline player that was deleted.
      Returns:
      the deleted offline player.