LogblockTime
LogblockTime (LBT) gets the online-time information from your Logblock database (http:dev.bukkit.org/server-mods/logblock/) and converts it into hours with the command:
/playtime (name)
To turn on online-time logging, go into your Logblock config, and set logPlayerInfo under logging to true.
Config:
MySQL-Information: Host: mysql.yourhost.com Database: Database Name: MySQLName Password: MySQLPassword Table: lb-players (The standard Logblock table name which contains online-time)
If you have any questions or suggestions comment them below!
NOTE: This is my first plugin! So don't expect too much ;)
I already had logblock and tried your plugin, but it just throws a playtime of zero, like there is no info in the table. The logplayerinfo was already set true. But there is info present in it. I can't see where the syntax should be wrong.
I was just looking for something like this a while ago, thanks.
It'd be nice if you could add permissions and make it so players can use /playtime for themselves, but not other users, unless they have the permission for it. :D
Or possibly even a /playtop which shows the top 10 users. :o
Hey Reteckz,
Thanks for making this plugin. I can see you one day thinking, "Hey, why don't we have logblock time?, I am going to make it".
I have been using the playtimesum and that bkcomm plugin. I am going to replace both of them with LogBlockTime; it will definitely help optimize my server.
Looks pretty handy!