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

Game time plugin

Discussion in 'Requests' started by Samantha, May 15, 2017.

  1. Samantha

    Samantha Spider

    Messages:
    9
    GitHub:
    mcwardsam
    I thought about this plugin which may be helpful for servers out there.

    After running the command the output shows the time a player joined; the date the player joined; the time the player quit; the date the player quit; the time zone of the player and how much time they played.

    Command format:
    • Command: /timer <player>
    • Arguments:
    • <player>: a string of the players username
    • Purpose: show the output as the example below.

    • Command: /timer debug <join time> <quit time>
    • Arguments:
    • <join time>: a string of the join time
    • <quit time>: a string of the quit time
    • Purpose: just a testing command that would do the same as a real player :)
    Output example:
    • Player: Steve
    • Last join time: Monday, May 15, 2017 at 3:30 PM (ET)
    • Last leave time: Monday, May 15, 2917 at 4:45 PM (ET)
    • Duration time: 1 HOUR, 15 MINUTES
    While you make this plugin, it could also be useful if you add an Application Program Interface just to reward the player depending on their play time. Thanks for all, I tried my best while writing this and read the README. :)
     
  2. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    i dont think there's any know way to obtain timezone then guessing, i may be wrong doe
    i also fail to see a logical uses for it
     
  3. Samantha

    Samantha Spider

    Messages:
    9
    GitHub:
    mcwardsam
    On the first I said: "to reward the player depending on their play time." :)
     
  4. Samantha

    Samantha Spider

    Messages:
    9
    GitHub:
    mcwardsam
    Well I've seen some plugin which tells the real time, does that help? :-S
     
  5. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    giving me the links will help
     
  6. Samantha

    Samantha Spider

    Messages:
    9
    GitHub:
    mcwardsam
    Whoops, nevermind. Is there anyway to do it in the php thingy?
     
  7. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    You can get a player's country by IP (except it the person is using a VPN lol)
     
    Last edited: May 16, 2017
    XdmingXD likes this.
  8. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    hmm that's actually perfect, at least you arent using IP for localizations...
    and it's not too much guesses/misses
     
  9. Samantha

    Samantha Spider

    Messages:
    9
    GitHub:
    mcwardsam
    You can try to put the timezone but it's not a requirement. :D
     
  10. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    I believe the timezone is send with the client information
     
    HBIDamian likes this.
  11. CodeRed2019

    CodeRed2019 Spider

    Messages:
    8
    GitHub:
    codered2019
    VPN not VPS lol
     
    XdmingXD likes this.
  12. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    I think that's what he meant. A VPN user has a different IP, so the timezone is no longer accurate. Nothing to do with VPS.
     
    falk likes this.
  13. jojoe77777

    jojoe77777 Shog Chips

    Messages:
    0
    GitHub:
    jojoe77777
  14. Samantha

    Samantha Spider

    Messages:
    9
    GitHub:
    mcwardsam
  15. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Yeah that was a typo
     
  16. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    example of what you seek?
     
  17. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Did you even read his post...
    For example, if the player joins every day according to their own timezone.
     
  18. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    i thought they meant that the timezone showing thing is not how they wanted exactly
    but i prefer using hours like join every 29 hour (+5 for begin more flexible)
    you also cant expect player to live on their timezone(yes most people do wake up at morning and sleep at night, but not all)
    also how is that better then using hours

    back on topic: i think there's a time reward or time rank plugin, that should work...
     
  19. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    I am quite sure very few people are still awake at 4:00 a.m. ;) so it would work better with this.
    If it is made in the way you mentioned, it will become accumulative, so
    it may lead to some unpredictabilities in servers whose managers want to apply actuarial science ;)
     
  20. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    Not sure why everyone is talking about the timezone... Surely the important data is how long players have played, and how often they come back. I've been wanting something like this ever since testing the Google Analytics plugin, but unfortunately never got around to starting it.
     
  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.