A.S.
Well, I don't know if this will help in this situation or not. But, when my son was that age he would not sleep in his bed without me there and he would always get up and come to my room. so, I came up with this idea. I went to the local craft store and bought some objects that looked liked tickets. They were wooden and had the ridged edges on the ends. I then wrote ticket on them and had him decorate them. He only had three tickets. I made something to hang them on his door. If he wanted to get up, or if he wanted me to come in his room, he had to give me a ticket. When the tickets were gone, that's it, he was not longer allowed up and I was no longer allowed in. If he did get up, I put him back in bed and said it's bed time. I didn't talk to him after I said that, I just placed him back into bed. It took about a week and haven't had to use them since.
I hope this helps!