Commands/schedule

Delays the execution of a function.


 * Syntax




 * Arguments


 * function
 * Specifies the function to delay.


 * time
 * Specifies the amount of time in gameticks to delay the function by.


 * Result


 * Fails if the arguments are not specified correctly or the function does not exist.
 * On success, executes the function after specified amount of time.

Notes

"Even when using '/execute as', the scheduled function will always run as the Server.""Scheduling the same function before it is successfully ran will overwrite the previous schedule, if you schedule a function to happen in 5 seconds, then schedule the same function again before the 5 seconds are up, the new schedule will be the one that happens."