Enum Class CallEvents

java.lang.Object
java.lang.Enum<CallEvents>
com.djrapitops.plan.extension.CallEvents
All Implemented Interfaces:
Serializable, Comparable<CallEvents>, Constable

public enum CallEvents extends Enum<CallEvents>
Enum representing different events when Plan calls methods of DataExtension automatically.

You can also call the update methods via Caller manually.

  • Enum Constant Details

    • MANUAL

      public static final CallEvents MANUAL
      This event represents a manual call via Caller. Definition inside DataExtension.callExtensionMethodsOn() is NOT REQUIRED for using Caller methods.
    • PLAYER_JOIN

      public static final CallEvents PLAYER_JOIN
      This event represents call to player methods on a Player Join event.

      The call is made from a listener at the last event priority (Bukkit/Bungee: MONITOR, Sponge: POST). Method calls are asynchronous.

    • PLAYER_LEAVE

      public static final CallEvents PLAYER_LEAVE
      This event represents a call to player methods on a Player Leave event.

      The call is made from a listener at the first event priority (Bukkit/Bungee: LOWEST, Sponge: PRE). Method calls are asynchronous.

    • SERVER_EXTENSION_REGISTER

      public static final CallEvents SERVER_EXTENSION_REGISTER
      This event represents a call to server methods when the DataExtension is registered.

      Server methods include any Group parameter methods.

      Method calls are asynchronous.

    • SERVER_PERIODICAL

      public static final CallEvents SERVER_PERIODICAL
      This event represents a call to server methods via a periodical task.

      Server methods include any Group parameter methods.

      Periodic task with a runs user configured period (Plan config). Method calls are asynchronous.

  • Method Details

    • values

      public static CallEvents[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CallEvents valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null