1. Hello everyone?
    I wanna check if the player is online in the hypixel network. Is it possible with hypixel api? And if yes, how
     
    #1
  2. NoahvdAa

    NoahvdAa Member

    NoahvdAa
    Messages:
    238
    Get the player statistics and if lastLogin > lastLogout they are online.
     
    #2
    Last edited: Aug 14, 2019
  3. As NoahvdAa said above, there are a lastLogin and lastLogout information in the API but be sure to check if these data exist before as it is possible for some players (that haven't logged since a long time) to not have these information ;)
     
    #3
  4. NoahvdAa

    NoahvdAa Member

    NoahvdAa
    Messages:
    238
    An example of this is the Notch account. It does have stats but it doesn't have lastLogin and lastLogout.
    You can see this on Plancke.
     
    #4
    • Agree Agree x 1
  5. Thanks for helping!
     
    #5
  6. mdashlw

    mdashlw New Member

    Messages:
    5
    Also these fields don't present for staff members
     
    #6
    • Useful Useful x 1

Share This Page