Enum DiscordLinkStatusChangeEvent.Cause
java.lang.Object
java.lang.Enum<DiscordLinkStatusChangeEvent.Cause>
net.essentialsx.api.v2.events.discordlink.DiscordLinkStatusChangeEvent.Cause
- All Implemented Interfaces:
Serializable
,Comparable<DiscordLinkStatusChangeEvent.Cause>
- Enclosing class:
DiscordLinkStatusChangeEvent
public static enum DiscordLinkStatusChangeEvent.Cause
extends Enum<DiscordLinkStatusChangeEvent.Cause>
The cause of the link status change.
-
Enum Constant Summary
Enum ConstantDescriptionUsed when a player is linked via an external plugin using API.Used when a player successfully completes an account link with the /link account in Minecraft.Used when a player is unlinked via an external plugin using API.Used when a player is unlinked due to them leaving the Discord server.Used when a player unlinks their account via the /unlink Discord or Minecraft command. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static DiscordLinkStatusChangeEvent.Cause[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SYNC_PLAYER
Used when a player successfully completes an account link with the /link account in Minecraft. -
SYNC_API
Used when a player is linked via an external plugin using API. -
UNSYNC_PLAYER
Used when a player unlinks their account via the /unlink Discord or Minecraft command. -
UNSYNC_API
Used when a player is unlinked via an external plugin using API. -
UNSYNC_LEAVE
Used when a player is unlinked due to them leaving the Discord server.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-