duration
A task time that represents the given duration amount of time.
Executions will not depend on the server's tick speed, and will be executed with a period of the given duration.
The scheduler is not required to be as precise as a standard Java scheduler would be (for example, ScheduledExecutorService), and if such precision is required, you are advised to use your own such scheduler.
Return
a task time representing the duration
Parameters
duration
the duration
A task time that represents the given amount of time in the given unit.
This is a shortcut for duration, therefore the same restrictions that apply to that method apply to this one.
Return
a task time representing the amount in the unit
Parameters
amount
the amount of time
unit
the unit of time