#Changed: made calculations of spawn algorithm asynchronously.
#Changed: made calculations of phantom stats asynchronously.
#Fixed: if a player entered a deactivated world spawning stopped until relog.
#Fixed: random chance was still messed up a bit but it should now work as intended finally.
I am very happy to finally announce this update.
I managed to improve performance by more than 50% and also fixed bugs along the way. But please bare in mind that even though I did it in university theoretically this is the first time for me to actually do things asynchronously in a plugin.
However as always it should all work - but you never know. Please be advised to observe the plugin's behavior more than usual. But in case you are wondering: Bugs that may occur will not damage your server irreparably. I would never publish something like that without informing you.