when

Create a new controller button trigger creator.

For Kotlin users, calling this method can be done with the notation ` `when` ` (see here), or by calling the alias on.

Return

The controller button trigger creator.

Parameters

user

The Controller instance to use.


Run a task when a condition is met. This condition will be evaluated continuously.

For Kotlin users, calling this method can be done with the notation ` `when` ` (see here), or by calling the alias on.

Return

Task scheduling builder

Parameters

condition

Supplier to provide a boolean value of when the task should be run.