Change a server wide check for players to be world specific. Worlds without players will not spawn entities.