Time players been on server

Discussion in 'Spigot Discussion' started by Unimatrix36, Jun 15, 2016.

  1. If I create a server, is there a way to see how many hours, days, weeks a player been on the server?
     
  2. as far is I know spigot cannot do this but a plugin can have a timer for this.
    shorter said: google is your best friend, or just search a plugin here on spigot
     
  3. MiniDigger

    Supporter

    you can get that via the vanilla stats system. the stat you are looking for is named stat.playOneMinute
     
  4. You're thinking about scoreboards I think?

    that seems like a good idea
     
  5. MiniDigger

    Supporter

  6. I was thinking more of a command. Not a scoreboard. Like /online <player name> or /time <player name>
    Mostly for admins to check if a player has been on the server long enough to get upgraded to a group with more permissions.
    The scoreboard shows the time in ticks, so you need to convert that to minutes or hours somehow.
     
    #6 Unimatrix36, Jun 15, 2016
    Last edited: Jun 15, 2016
  7. MiniDigger

    Supporter

    well, you can easily implement such a command with the method linked above.
     
  8. How? Like /stat.playOneMinute <player name>

    I know nothing about programming.
     
  9. MiniDigger

    Supporter

    Oh. I will throw something together after work if you want.
     
  10. Nice. I'll try it out.