Fix of constantly running tasks during the shutdown of the plugin (reported on Discord by _.eagl3)
This issue can occur, if you have quite a lot of plugins on your server and your shutdown time is longer than 20-25 seconds.
During this time, player's arent kicked (most of the time) from the server which makes them available for the method Bukkit.getOnlinePlayers() but the server stops accepting new tasks while it's disabling. That's why it's needed to stop the creation of new tasks by implementing simple check like I've did.
Fix of constantly running tasks during the shutdown of the plugin (reported on Discord by _.eagl3)
This issue can occur, if you have quite a lot of plugins on your server and your shutdown time is longer than 20-25 seconds. During this time, player's arent kicked (most of the time) from the server which makes them available for the method Bukkit.getOnlinePlayers() but the server stops accepting new tasks while it's disabling. That's why it's needed to stop the creation of new tasks by implementing simple check like I've did.