public static void setScheduleHandler(@Nullable Function<? super Runnable, ? extends Runnable> handler) {
        if (lockdown) {
            throw new IllegalStateException("Plugins can't be changed anymore");
        }
        onScheduleHandler = handler;
    }
public static void setScheduleHandler ( @ Nullable Function < ? super Runnable , ? extends Runnable > handler ) { if ( lockdown ) { throw new IllegalStateException ( "Plugins can't be changed anymore" ) ; } onScheduleHandler = handler ; }
Sets the specific hook function.
@param handler the hook function to set, null allowed