Change outdated code in User.java

This gives me an error on my server and now i think i fixed it. ;)