Annotation Interface Confirmation
- Author:
- Despical
Created at 5.02.2024
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionintHow many seconds should pass so the confirmation gets expired.The message will be sent to the sender if they have not confirmed yet. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe permission to bypass confirmations.booleanIf option istrue, console will be affected by confirmations; otherwise, it will override the confirmation period to use the command again.The time unit for#expireAfter().
-
Element Details
-
message
String messageThe message will be sent to the sender if they have not confirmed yet.- Returns:
- the confirmation message.
-
bypassPerm
String bypassPermThe permission to bypass confirmations.- Returns:
- the bypass permission.
- Default:
""
-
expireAfter
int expireAfterHow many seconds should pass so the confirmation gets expired.- Returns:
- the time required for the confirmation period to expire.
- See Also:
-
timeUnit
TimeUnit timeUnitThe time unit for#expireAfter().- Returns:
- the unit of expiration time.
- Default:
SECONDS
-
overrideConsole
boolean overrideConsoleIf option istrue, console will be affected by confirmations; otherwise, it will override the confirmation period to use the command again.- Returns:
- false if console overrides confirmations, otherwise true
- Default:
false
-