dniym / IllegalStack

A spigot based plugin dedicated to fixing glitches and exploits that have made it into final Minecraft releases.
GNU General Public License v3.0
148 stars 36 forks source link

Fix of shutdown error #177

Closed petulikan1 closed 8 months ago

petulikan1 commented 1 year ago

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.