1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Player online time

Discussion in 'Development' started by Hipster, Oct 13, 2017.

  1. Hipster

    Hipster Zombie

    Messages:
    214
    how can we get the time, the player has been online? like 2min etc?
     
  2. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    log it when it joins
    and query that against joined time with time()
     
  3. Hipster

    Hipster Zombie

    Messages:
    214
    and how to get the first join?
     
  4. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    jasonwynn10, Muqsit and Hipster like this.
  5. Hipster

    Hipster Zombie

    Messages:
    214
    and how to get the original player name and not the namedtag?
     
  6. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    are you referring to the variable in the code named namedtag? Or are you trying to ask a new question on this thread? I'd suggest to open a new thread for that.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.