Class CloudServiceUpdateEvent


public final class CloudServiceUpdateEvent extends CloudServiceEvent
An event being fired when a service updates its information. Normally an update is triggered by one of:
  1. a specific call to the wrapper api by a plugin.
  2. a state change of the service, for example from running to deleted.
  3. a change happening on the service, for example a player join or leave.

This event contains the service info after the update of it. To save resources (and as there is no need internally for it) the old service info will not be available in this event and must rather be read from another cache (for example an own one).

Since:
4.0
  • Constructor Details

    • CloudServiceUpdateEvent

      public CloudServiceUpdateEvent(@NonNull @NonNull ServiceInfoSnapshot serviceInfo)
      Constructs a new cloud service update event.
      Parameters:
      serviceInfo - the service info associated with this event.
      Throws:
      NullPointerException - if the given service info is null.