Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Discussion' started by Unimatrix36, Jun 15, 2016.
If I create a server, is there a way to see how many hours, days, weeks a player been on the server?
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
you can get that via the vanilla stats system. the stat you are looking for is named stat.playOneMinute
You're thinking about scoreboards I think?
that seems like a good idea
you can use the scoreboard to access them, but there is also an api for it https://hub.spigotmc.org/javadocs/s...layer.html#getStatistic(org.bukkit.Statistic)
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.
well, you can easily implement such a command with the method linked above.
How? Like /stat.playOneMinute <player name>
I know nothing about programming.
Oh. I will throw something together after work if you want.
here you go:
Nice. I'll try it out.