search for the statement in the login method in Client.java and remove it.
|
So whenever I log-in with an account I get this out print in my servers cmd
Code:[8/28/13 2:39 AM]: Player Slot 1 slot 0 null Player Hit game.player.Player@4ec069fd
The hashes after the Player@##### change every time. And as far as I know it's not effecting the server or anything like that, it's just annoying to look at.
search for the statement in the login method in Client.java and remove it.
The hexadecimal number after the @ is the memory address that Player instance resides in.
It's printing out the player. But since the Player class doesn't override the toString() method, it uses the first toString() method from its super classes.
In this case (and most cases), this is the Object class (which all classes extend, direct or indirect).
The Object's class toString() method prints out the name of the class and the memory address.
If you want to remove this, simply search for "Player Slot " (caps sensitive) and you'll find the line.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |