DooBStat
DooBStat
Simple player statistics plugin.
Plugin collects information about connects/disconnects and time spent by players on your server.
Another function of this plugin is to remove long-absent players (with player.dat files). This can be done automatically or manually by issuing the appropriate command.
This is MySQL only plugin.
Collected informations:
- player name
- last known player IP
- online/offline status
- first login date and time
- last login date and time
- number of logins.
- this login date and time - if player is still online "last login" is his previous login date and "this login" is actual.
- last logout date and time
- time spend on the server in seconds.
- distance traveled (in meters/blocks)
- by foot
- when flying
- when swimming
- on pig
- on minecart
- on boat
- on horse
- number of fish caught
- number of beds used
- number of placed blocks
- number of destroyed blocks
- number of deaths
- number of deaths in PVP
- name of last killer
- number of kills in PVP
- name of last victim
Installation:
- Download the plugin from the files page, put the .jar in your plugins folder
- Run the server once for the config file to be created and then shut it down again
- Open the config.yml file and edit it
- mysql section of config - write your database name, user, password, etc.
- clean section of config - for extended description check Cleaning page.
- debug - true/false (default false) - show debug information. It should not be used in production server.
- checkVersion - true/false (default true) - Checks if new version of this plugin is available and shows information in console.
- pluginStats - true/false (default true) - Send information to the author's website about plugin usage. What is send: server ip, server port, server name and this plugin version. Collected data are not publicly available, and will be shown only as anonymous statistics.
- dbversion - do not change this (it is for internal use).
- To display collected information you must write extension for your server website, or use example.php file described in next section
How to display this informations?
In attached "extras" directory (you must unzip plugin *.jar file, or you can go to source), there is a file example.php it shows how to use collected data to display simple player list. (before use you must edit example.php and fill database name, user, password etc.)
Screenshot from my test server:
Source:
GitHub https://github.com/DooBLER/DooBStat
Sorry for my english it is not my native language.
If you spot something wrong in this description please send me pm.
@yotamN
Well the PHP backbone is there, but it isn't safe. You'd have to apply filters for input fields etc. A lot of work.
@DooBLER
so it's never be safe unless i write new code?
@yotamN
Inputs are not filtered and somebody can easily hack into your mysql database.
I don't have time to provide full PHP site :/
I am using this plugin with small cms application writen in python, unfortunatly this project is closed source.
hi, i look for statics plugin and i found this amazing plugin but i got a problem, i know only HTML and CSS and i don't know anything in PHP, so why i can't use the example.php to my website?
Hi,
I just wanna say thanks for this amazing plugin, it is very appreciated! It works perfect, has the options it needs, and does not use much server power. Great plugin, please keep update it :D!
@GumbyDammit
Sorry about this. 0.5.1 was a quickfix for 0.5.0 and I forgot to change version in plugin.yml file.
In the next few days should be released the next version with more statistics and this "bug" fixed.
EDIT: 1.6.1 Fix for horses is on the way.
Doobstat keeps telling me in my server.log that I need to upgrade to 0.5.1, but I'm already running that version.
@GumbyDammit
This error comes when you reload the server with a player on it
@DooBLER
Perhaps. I have 54 active plugins running and there are updates all the time. I haven't seen it since so maybe it was just a one-off thing.
@GumbyDammit
Sorry for late response. (I have many things on my head now.)
Did you get this error after bukkit or plugin update?
I started getting a ton of these last night and I don't know why. It's been running fone for many days previous:
Hello,
ChrisX930 tell it, could you add a little more stats? :$
Like:
Otherwise, very nice plugin, I love it, simply and slim! Good job!
@ChrisX930
Yes, can be done on next version or later. Also player deaths counter etc.
But i don't want to add details like "who kill whom, at what time, what tool he used" this is too much details for my purpose.
Nice Plugin! Could you add some more statistics like "killed xx players" or "killed xx chickens/zombies/cows".
@DooBLER
I'm not a database guy and have no idea how to do what you just recommended. Then I poked around and managed to figure it out. Thanks for the tip.
@GumbyDammit
Why you want to use txt file when your data is in database?
Attached php file is only an example, you can write similar "program" in any other language.
If you just want "see" collected data you can use phpmyadmin or other MySQL GUI. That will be easier than reading relatively large text file.
What if you can't run the php file? It would be nice if there was an in-game command to dump this same table to a txt file.
Good job!
@DanielMullaly
Yes, do you have any problems with performance?
If you have a problem with that, change DB table engine to MyISAM. In next version this will be hard coded.
Have you done any tests with resource usage?