The old task system was very lackluster and has been replaced with a more flexible system, tasks in this sense are just an easy way to define something we want to run at a given interval/at x time/x time from now.
A new cleanup task has been added that will remove the entities defined in config from the world at a given interval.
Auto Shutdown & Backups have been converted to the new task system as they are perfect candidates for it and previously had code sprinkled in various classes to control the time that they should run.
Also fixes player heads drawing incorrectly on some guis (I'm too lazy to make a seperate pr)
Before:
The old task system was very lackluster and has been replaced with a more flexible system, tasks in this sense are just an easy way to define something we want to run at a given interval/at x time/x time from now.
A new cleanup task has been added that will remove the entities defined in config from the world at a given interval. Auto Shutdown & Backups have been converted to the new task system as they are perfect candidates for it and previously had code sprinkled in various classes to control the time that they should run.
Also fixes player heads drawing incorrectly on some guis (I'm too lazy to make a seperate pr) Before:![su_playerhead_pre](https://github.com/GTNewHorizons/ServerUtilities/assets/127234178/d2f4cfc4-0fd3-46eb-bf15-dd40c1a6eac7)
After:![su_playerhead](https://github.com/GTNewHorizons/ServerUtilities/assets/127234178/fed97eee-4ec6-4abd-9292-193d91c96236)
Closes https://github.com/GTNewHorizons/ServerUtilities/issues/77