DangerZone is a project mainly written in Java, it's free.
an hMod/Canary plugin to limit mob spawning