Skip to main content

Usage Example

@EventHandler
public void onVCTEvent(VCTEvent event) {
    if (event.getType() == VCTEventType.MODIFY) {
        String timerId = event.getTimerId();
        String modifier = event.getModifier();
        String modification = event.getModification();

        Bukkit.broadcastMessage("Timer " + timerId + " was modified! | Modifier: " + modifier + " | Modification: " + modification);
    }
}

Behavior

  • Fired when the timer is modified with /vct modify or the API.
  • The event provides the modifier and the modification.

Parameters

event
VCTEvent
Represents the event. Useful getters:
  • String getTimerId() — ID of the modified timer
  • String getModifier() — the type of modification that was made
  • String getModification() — the new remaining time in HH:MM:SS
I