Only logged in user can veiw

I have made a plugin that creates page such as phpfreechat.

I have tried gatekeeper but it doesn't work. Tell me what code to enter..

I want the page to only be veiwed by logged in users