Playerstats
Playerstats - Track player stats like, IP, Last seen, First seen
Version: v1.9
ALL NEW VERSION OF PLAYERSTATS!!! NOW IT ACTUALLY WORKS!!!
This is a simple plugin designed to track player statistics to help with admin work. It records players individual data and allows it to be called up in game with commands.. It is my first plugin with permissions support that I have released.
Features:
Logs First and Last seen
Logs IP
Logs last position when the player logged out
Logs how many times the player has logged in to the server
Custom first join messages with colour support!! (now also standard MC colours are available)
Tells the user what the error is if the log doesn't have the required information
Uses Bukkit Permissions!!
Simple command structure!
Console support!
/ps info <name> is now /ps report <name>
Commands:
Quote:/pstats or /playerstats - Commands can be prefixed with either of these, but i will be using /ps in the command description for simplicity. This command just brings up a chat message with the Plugin name, version and author
/pstats ? - Displays in game help.
/pstats firstseen <name> - Displays the first seen data for the player <name>
/pstats lastseen <name> - Displays the last seen data for the player <name>
/pstats seen <name> - Displays the first and last seen data for the player <name>
/pstats seen <name> - Displays the first and last seen data for the player <name>
/pstats ip <name> - Displays the IP address of the player <name>
/pstats lastpos <name> - Displays the last position of the player <name>
/pstats playtime <name> - How long they have actually played (online) on the server.
/pstats activity <name> - Shows as a percentage how active they are (Playtime/Total Time)
/pstats totaltime <name> - Displays the time the player has been on the server (Time from first seen to last seen, not play time)
/pstats flag - Shows the help for the /ps flag <name> command. (what the flags mean)
/pstats flag <name> - Displays the current flag for the player
/pstats logons <name> - Shows how many times the player has logged on
/pstats report <name> - Displays an info sheet with all the data collected of the player. (Players can do this command about themselves without the permission node)
/pstats updatecheck - Checks to see if there is an update.
/pstats update - Updates the plugin (Server must be reloaded to apply the changes) This Command is Vanilla OP + Console only.
/pstats reload - reloads the config
First Join message Macros
Quote:They support the default minecraft colours. Found here -> http://i.imgur.com/h3CIU.png
Or these ones below.
&AQUA;
&BLACK;
&BLUE;
&DARK_AQUA;
&DARK_BLUE;
&DARK_GRAY;
&DARK_GREEN;
&DARK_PURPLE;
&DARK_RED;
&GOLD;
&GRAY;
&GREEN;
&LIGHT_PURPLE;
&RED;
&WHITE;
&YELLOW;
&PLAYER; (This is where the players name would appear)Example:
"&b Welcome &RED; &PLAYER; &b to the server"this would put the players name (Represented by &PLAYER;) in red. with "Welcome" and "to the server" in aqua (&b)
Permissions
Quote:Permissions are per command.
- No permission for - /pstats, /playerstats, /pstats ?, /pstats report (on themselves)
- playerstats.* - All permissions (yes it works i coded it in)
- playerstats.seen.firstseen - /pstats firstseen
- playerstats.seen.lastseen - /pstats lastseen
- playerstats.seen.seen - /pstats seen
- playerstats.info.ip - /pstats ip
- playerstats.info.lastpos - /pstats lastpos
- playerstats.info.totaltime - /pstats totaltime
- playerstats.info.playtime - /pstats playtime
- playerstats.info.activity - /pstats activity
- playerstats.info.flag - /pstats flag
- playerstats.info.all - /pstats report
- playerstats.info.logons - /pstats logons
- playerstats.reload - /pstats reload
Change log
This will be with the latest file to download
Please note that this plugin submits basic data back to my central database with information such as server name and Ip
Future Changes
- Add Block statistics like; Blocks broken, Placed ect.
- Fight Statistics.
- Kills - Mobs (types of mobs), Players, Weapons - Bow, Sword, Axe, pick Other (Will include weapon type i.e. Stone Sword).
- Deaths - from mobs(Types of mobs), from players. Weapons used to be killed (grouping as above)
- Fight Stats will also allow for things like Kill/death ratio. Player Skill ect.
- Allow players to be listed depending on their flag (I.e list of black flagged people to know who has been away for more than 2 months)
- A command to 'archive' black listed people so that they don't clog up the list, but their details are still there in case they want to log on again
This time i logged in and ran around before I did it. As soon as I did the psp command server locked up solid and kicked me from game with connection error. I even tried to do a console command first. And it worked, but soon as I did PSP a second time bam locked up.
@BearFather
Type something before pressing enter
Same issue I get no response.
@BearFather
Aggg, Right... Let me just go take a look
Link Removed: http://www.mediafire.com/download.php?17lf5tlbg8eb85n
this is it
It won't load on my server I get no message about it being loaded and I can't download it on on my windows machine from that link. But I downloaded it from my server and it seems to be the main plugin :)
@BearFather
Damnit... Right This new upload should work. Just wait 5 mins after this post just incase before downloading :P
No error's this time. But doesnt run.
I hit enter, then nothing. I have to do CTRL+C to stop the server. I get blank lines and I have pounded the enter key no response.
@BearFather
Updated, Should work now
@BearFather
I will need to change something, It happened on my mates server. Im gonna need to release a new version of the port plugin, so it starts after Platerstats has connected
I was trying to convert to the new version using sql, I followed the directions in the quote box on top. But when it loads I get this error...
Then if I do try to do the command anyways it runs the backup of the file and then it dies out.
Is there a place I set the SQL info? Cause the Playerstats plugin sees the db and writes to it.
Updated. Just waiting on approval for the config to DB converterClick the link in the quote box at the top of the post
@Waizujin
Mysql just added :D
@Waizujin
No permission for it. anyone can do /pstats report on themselves
@Waizujin
Well now you dont have too
@Waizujin
Mysql or Flatfile
Right... my internet is finnaly back :D The new version should be up soon. just finishing off a few bits and pieces.
@Waizujin
Yeah, I will add that too
Would it be possible to add a permission that allows them to do a /pstats report on ONLY themselves?
@mbl111
SOOOO Glad you are adding MySQL support. I can't wait!!!
@Waizujin
Big update coming... For Bukkit 1.1 im updating playerstats.
-MYSQL support
-More stats
-Faster handling
-Code cleanup
and anything else from tickets i havnt mentioned here
Great plugin! Very handy and the Welcome msg is awesome! =
One of the best plugins of its time with only one downfall. No MySQL database support. :(
Does this log running total played time?