Usage Example
Behavior
-
The method requires that a timer already exists.
- If no active timer is found, the method will fail and return
false.
- If no active timer is found, the method will fail and return
-
Available actions (
modifier): -
When modified:
- The BossBar and other settings update in real time.
- The
MODIFYevent is triggered. - Config changes (color, style, sound, etc.) are persisted to the timer’s config file.
Parameters
string
required
Action to perform on the timer.The available actions are
"add", "take", "set", "bossbar_color", "bossbar_style", "text", "sound", "sound_enable", "sound_volume", "sound_pitch".string
required
The new value to apply for the chosen modifier.
CommandSender
Reference to the player who performed the action.
- If a player passes, they will receive a message indicating that the timer was modified
- It is usually not necessary to use it directly in the API
Returns
boolean
Indicates whether the operation succeeded.
true— Timer exists and modification applied successfully.false— Invalid parameters or no active timer.
