Package com.djrapitops.plan.extension
Enum CallEvents
- java.lang.Object
-
- java.lang.Enum<CallEvents>
-
- com.djrapitops.plan.extension.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 ofDataExtension
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 viaCaller
.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 theDataExtension
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.
-
-
-
Enum Constant Detail
-
MANUAL
public static final CallEvents MANUAL
This event represents a manual call viaCaller
. Definition insideDataExtension.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 theDataExtension
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 namejava.lang.NullPointerException
- if the argument is null
-
-