Class ServiceTaskAddEvent


public final class ServiceTaskAddEvent extends ServiceTaskEvent
An event being called when a service task gets added or updated. This is due to the fact that adding or updating makes no difference for the cloudnet internal handling so there is no reason to split the same behaviour into two events.
Since:
4.0
  • Constructor Details

    • ServiceTaskAddEvent

      public ServiceTaskAddEvent(@NonNull @NonNull ServiceTask task)
      Constructs a new service task add event.
      Parameters:
      task - the task associated with this event.
      Throws:
      NullPointerException - if the given task is null.