LogBlockStats - lastseen and onlinetime functions
LogBlockStats is a Plugin wich provides lastseen,playertime/onlinetime and firstseen functions. Update for MC 1.2.x..Done!
Features
- shows you the last login/first login/total playtime of a specific player
- the source of the informations is the logblock database
Commands
Command | Alias | Description |
---|---|---|
/lbstats lastseen <player> | /lastseen <player> | shows you the last login of <player> |
/seen <player> | ||
/lastlogin <player> | ||
/lbstats onlinetime <player> | /onlinetime <player> | shows you the total playtime of <player> |
/playtime <player> | ||
/lbstats firstseen <player> | /firstseen <player> | shows you the first login of <player> |
/firstlogin<player> | ||
/lbstats top | - | shows you the ten players with the highest onlinetime |
Permissions
Config
Screenshots
Please forgive me my english, if you find any mistakes(on this site or in the plugin) please write me a PM.[If you can, write the PM in german, but english is ok, too]
If you want to have the source code, just write me a short PM.
Plugin abandoned?
Since this plugin is broken and inactive and the author will not respond I have created my own.
Anyone is welcome to use this:
http://dev.bukkit.org/server-mods/lbstats/
ERRORS!! Please update/pass to another developer (I'd be happy to take this project on)
Da es keine Alternativen gibt, bleibt nur Hoffen und auf ein Update warten. Ich hoffe wir können dich umstimmen es auf die neuste Version zu updaten. Wenn du irgendwelche Infos brauchst, schreibs rein und wir liefern :)
i get this error. It still works though.
2012-09-03 06:28:02 [INFO] [LogBlockStats] Enabling LogBlockStats v1.1.0.2 2012-09-03 06:28:02 [INFO] [LogBlockStats] Loaded! 2012-09-03 06:28:02 [SEVERE] Error occurred while enabling LogBlockStats v1.1.0.2 (Is it up to date?) java.lang.NullPointerException at lib.PatPeter.SQLibrary.DatabaseHandler.writeError(DatabaseHandler.java:83) at lib.PatPeter.SQLibrary.MySQL.open(MySQL.java:88) at me.Karuso33.LogBlockStats.LogBlockStatsCore.onEnable(LogBlockStatsCore.java:37) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:365) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:265) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:247) at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:296) at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:275) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:225) at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:380) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
This plugin should work fine as long as logblock doesn't change player sql tables/columns..
Please, Update !
UPDATE THIS PLEAAAASE
Hello,
I keep getting an error. Nothing at all logs. I have set up my MySQL properly with all the correct Host nae etc but nothing is showing up. e.g when i do /lbstats onlinetime chr1s0143 it only says ''chr1s0143 was 00:00:00 online''
Any idea on how i can fix this or is their any know Plugins that can conflict with it?
Thanks.
Error: when you type /onlinetime you get this:
it should display a help message "Proper usage: /onlinetime <playername>" instead of giving an error.
can this be rewritten to not lag server with slow remote mysql servers??
need perm, so that its just self check, not being able to check others
that's....amazing!!! But the plugins shows that someone has been online for 108064h.....It that reliable?- -
Bitte permissions einstellen!
@Karuso33 use vault https://github.com/MilkBowl/Vault for an easier way to implement permissions. And please add an option to toggle only enable plugin for OPs.
@Doreeworld
its hours:minutes:seconds
Still loving this plugin! Thx everyone for all the help. But I am about to ask something which I am sure you all will say "Herp Derp" to me.
So no that we have 300:30:03 (which looks better so far) is it still in seconds?
300 seconds: 30 seconds: 03 seconds
I am so sorry to keep trying to clear this up but I am using this to demote staff that don't play. The data is my proof of why demoting.
Thx again :)
I get this! Please help, it worked flawless for some days, this plug-in is going to be a MAJOR factor on my server, and thanks for making it! It's the absolute solution to my prayers ;) also, permissions! (what ZeonG8 said) maybe some small language files? This can get pretty cool..
13.04 17:02:02 [Server] INFO ... 14 more 13.04 17:02:02 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) 13.04 17:02:02 [Server] INFO at me.Karuso33.LogBlockStats.LogBlockStatsCore.onCommand(LogBlockStatsCore.java:85) 13.04 17:02:02 [Server] INFO Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 13.04 17:02:02 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) 13.04 17:02:02 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449) 13.04 17:02:02 [Server] INFO at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551) 13.04 17:02:02 [Server] INFO at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) 13.04 17:02:02 [Server] INFO at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:169) 13.04 17:02:02 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) 13.04 17:02:02 [Server] INFO at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) 13.04 17:02:02 [Server] INFO at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34) 13.04 17:02:02 [Server] INFO at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:103) 13.04 17:02:02 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764) 13.04 17:02:02 [Server] INFO at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781) 13.04 17:02:02 [Server] INFO at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821) 13.04 17:02:02 [Server] INFO at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:473) 13.04 17:02:02 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166) 13.04 17:02:02 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) 13.04 17:02:02 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'lbstats' in plugin LogBlockStats v1.0
Great job many thanks :)
Can't wait for permissions support!
oh did get this with /lbstats ..maybe have that return a help page..?
finally a plugin that just taps into logblock for the player time :D
...only it could do with command and output polishing
hopefully "coming soon"... includes a perm for normal players to self check with something simple like /lbtime just a single command that returns their time?
And a make the time more readable for over 24hrs not 600:10:20 ie like "1 days, 1 hours, 1 minutes and 1 seconds." or 5days 2:05:43
something like that/..