Enum CallEvents

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<CallEvents>

    public enum CallEvents
    extends java.lang.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 Summary

      Enum Constants 
      Enum Constant Description
      MANUAL
      This event represents a manual call via Caller.
      PLAYER_JOIN
      This event represents call to player methods on a Player Join event.
      PLAYER_LEAVE
      This event represents a call to player methods on a Player Leave event.
      SERVER_EXTENSION_REGISTER
      This event represents a call to server methods when the DataExtension is registered.
      SERVER_PERIODICAL
      This event represents a call to server methods via a periodical task.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static CallEvents valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static CallEvents[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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 Detail

      • values

        public static CallEvents[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CallEvents c : CallEvents.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CallEvents valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null