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
There are plugins such as Conditional Events (CE) that support API listening, and you can use them to create great things!
Information available in VCTEvent
Returns the timer instance (may be null if the timer no longer exists)
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 who performed the action, or
null
if it was not a playerThe unique identifier of the timer
Initial time set on the timer in HH:MM:SS format
Current remaining timer time in HH:MM:SS format
The modifier used via
/vct modify
or the API. Returns null if the event is not MODIFY
.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!