Is there a Way to make my game check if the player is online or not?
Didnt undderstand youre problem
You can verify if a player is connected on internet, send a request POST or GET to website and catch the response. if you can read the response you are online.
OK and how do I do that?