All right guys,
I will post my script here
The problem is as follows:
The script uses MySQL to get some data, like the X, Y and Z position. When I start the server, it works fine. I can login, and I spawn at the position defined in the database.
But, when I restart the client without restarting the server, I can login, it checks if the password is correct, but I don't spawn anymore!
It's so annoying. I tried many different things. If you place a message in the continuelogin function, I get the x, y and z coordinates just fine.
http://pastebin.com/xHRWi9TH
I hope I will get an answer soon, because I can't continue my gamemode now :S
Thanks so far
Bas