Back in the days I remember that cancelling CreatureSpawnEvent can potentially cause a memory leak. Is it still a thing? If so - removing entity 1 tick later is the best way to do it?
no, I don't think that is a memory leak, just more garbage collection. Paper adds PreCreatureSpawnEvent to reduce memory garbage
Oh, that's good. Thank you. Yeah, I'm using it, but I want to support Spigot too, so, I will use both but depending on server core(paper or spigot).