Package com.djrapitops.plan.extension
Enum Class CallEvents
- All Implemented Interfaces:
Serializable
,Comparable<CallEvents>
,Constable
Enum representing different events when Plan calls methods of
DataExtension
automatically.
You can also call the update methods via Caller
manually.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThis event represents a manual call viaCaller
.This event represents call to player methods on a Player Join event.This event represents a call to player methods on a Player Leave event.This event represents a call to server methods when theDataExtension
is registered.This event represents a call to server methods via a periodical task. -
Method Summary
Modifier and TypeMethodDescriptionstatic CallEvents
Returns the enum constant of this class with the specified name.static CallEvents[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MANUAL
This event represents a manual call viaCaller
. Definition insideDataExtension.callExtensionMethodsOn()
is NOT REQUIRED for using Caller methods. -
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
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
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
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
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
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 nameNullPointerException
- if the argument is null
-