Normal
You need to create a "WakeUpHandler" class (there are some implementations already in PowerScheduler to see how it works) and the when your plugin is started register it with PowerScheduler. The wake-up handler is queried at certain times for the next wake up time it wants. This is only for handling wake-up.Scheduling (i.e actually running a task at a specified time) has to be done manually: you can use timers, a sleeping thread polling at regular intervals (e.g. every minute) or by subscribing to the OnPowerSchedulerEvent and poll at every event with type "Elapsed" (which happens once every minute). The latter solution though ties your plugin to PowerScheduler, i.e. scheduling will not work unless PowerScheduler is enabled.
You need to create a "WakeUpHandler" class (there are some implementations already in PowerScheduler to see how it works) and the when your plugin is started register it with PowerScheduler. The wake-up handler is queried at certain times for the next wake up time it wants. This is only for handling wake-up.
Scheduling (i.e actually running a task at a specified time) has to be done manually: you can use timers, a sleeping thread polling at regular intervals (e.g. every minute) or by subscribing to the OnPowerSchedulerEvent and poll at every event with type "Elapsed" (which happens once every minute). The latter solution though ties your plugin to PowerScheduler, i.e. scheduling will not work unless PowerScheduler is enabled.