How to change the dungeon finder?

Hii guys!! How are you?

I’m interested in setting up the Dungeon Finder to be able to access only two people, three people, four … five.

I have observed much the source, but I have no security when setting it up. I need your little help, please.

Kisses <3

Search on the forums, there was a post about it. But I think noone figured how to do what you want.