Thread: [PI] Strange out print when a player logs in

Results 1 to 3 of 3
  1. #1 [PI] Strange out print when a player logs in 
    Registered Member DAYUM's Avatar
    Join Date
    Jan 2011
    Posts
    216
    Thanks given
    39
    Thanks received
    0
    Rep Power
    1
    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.
    Reply With Quote  
     

  2. #2  
    Donator
    abd1's Avatar
    Join Date
    Nov 2011
    Posts
    707
    Thanks given
    150
    Thanks received
    67
    Rep Power
    38
    search for the statement in the login method in Client.java and remove it.
    Reply With Quote  
     

  3. #3  
    Registered Member
    TheChosenOne's Avatar
    Join Date
    Jan 2013
    Posts
    967
    Thanks given
    47
    Thanks received
    161
    Rep Power
    366
    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.
    Reply With Quote  
     

  4. Thankful user:



Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [Pi] Starter Bank When New Player Logs
    By Mgt Madness in forum Snippets
    Replies: 29
    Last Post: 04-22-2017, 01:25 PM
  2. Replies: 3
    Last Post: 04-19-2013, 04:16 PM
  3. When a player logs in hes donator?
    By Projectkingdom in forum Help
    Replies: 2
    Last Post: 10-03-2012, 02:24 PM
  4. [PI] Weird out print when players log in
    By Ambient in forum Help
    Replies: 7
    Last Post: 02-07-2012, 06:14 AM
  5. Say when a player logged in.
    By Hyperventilate in forum Help
    Replies: 0
    Last Post: 03-29-2009, 04:55 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •