Solved Calculating playtime

Discussion in 'Plugin Development' started by johnny_boy, Jul 20, 2019.

Thread Status:
Not open for further replies.
  1. Offline

    johnny_boy

    i'm not too sure how im gonna tackle this. Basically when this plugin is active and people are on the server it will record how long they've been on it for. I don't have any experience with db's so im going to use a config (I assume that's the best method) to store how long the players have been online. I just need a starting point or something to help me with this. Thanks!
     
  2. Offline

    KarimAKL

  3. Offline

    johnny_boy

    20 ticks is a second correct?
     
  4. Offline

    KarimAKL

    Yeah.
     
  5. Offline

    johnny_boy

    So.. there's a statistic (in 1.8) called PLAY_ONE_TICK and it returns total time played in ticks (basically seconds). That is in essence what i was looking for. Thank you!
     
    KarimAKL likes this.
Thread Status:
Not open for further replies.

Share This Page