> ## Documentation Index
> Fetch the complete documentation index at: https://vctdocs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# MODIFY

> Triggered when a timer is modified.

## Usage Example

<CodeGroup>
  ```java Java Example theme={null}
  @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);
      }
  }
  ```

  ```yaml CE Example theme={null}
  vct_modify_example:
    type: custom
    custom_event_data:
      event: voiidstudios.vct.api.VCTEvent
      variables_to_capture:
      - '%eventType%;getType()'
      - '%timerId%;getTimerId()'
      - '%modifier%;getModifier()'
      - '%modification%;getModification()'
    conditions:
    - '%eventType% == MODIFY'
    actions:
      default:
      - 'to_all: actionbar: Timer %timerId% was modified! | Modifier: %modifier% | Modification: %modification%;200'
  ```
</CodeGroup>

## Behavior

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

## Parameters

<ResponseField name="event" type="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
</ResponseField>
