VCTEvent, which is triggered whenever a timer-related action occurs.
This event provides all the information necessary to react appropriately in your plugin.
The event itself
Information available in VCTEvent
Timer
Returns the timer instance (may be null if the timer no longer exists)
CommandSender
Source that performed the action. This can be a player, the console, or
null if it comes from another source (such as a plugin)Player
Player who performed the action, or
null if it was not a playerString
The unique identifier of the timer
String
Initial time set on the timer in HH:MM:SS format
String
Current remaining timer time in HH:MM:SS format
String
The modifier used via
/vct modify or the API. Returns null if the event is not MODIFY.String
The modification used via
/vct modify or the API. Returns null if the event is not MODIFY.Available Events
CREATE
Triggered when a new timer is created
CHANGE
Triggered every second while the timer is counting down
FINISH
Triggered when a timer reaches 00:00:00
PAUSE
Triggered when a timer is paused
RESUME
Triggered when a paused timer is resumed
STOP
Triggered when a timer is stopped manually
MODIFY
Triggered when a timer is modified
Not sure how to begin?
Examples
Check out the examples using API events by clicking this card!
