SvrStats

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

This is a stat logging plugin that logs everything from blocks broken to characters chatted to time online. It has MySQL support, but currently no commands as it's (currently) meant for online stats (and you have to make the frontend yourself). In the future i might go ahead and add commands or a frontend but right now i'm focused on adding moar stuff to log. GitHub (Source)

Backstory

I was surfing the interwebz, when suddently i saw a page for some server's player stats. I then thought "this would be good for my server" and i checked out the server's website. Turns out they were selling the stat system for 200 dollars. I thought "i can do this myself" and then went on coding, while testing on a production server (i'm hardcore like that).

Technical stuff

When the plugin first launches, it connects to the database. If the connection is successful, it checks if there's a table named "stats" in the selected database. If there isn't, it creates one.

When a player joins, it checks if the player is in the database. If not, it creates a coloumn for the player with the default values. Here's the field specs:

fielddescription
playerThe name of the player.
joinsThe amount of times the player has joined.
lastjoinThe last unix time the player joined the server.
playtimeAmount of seconds the player has played on the server.
firstjoinThe first unix time the player joined the server. Set to the current unix time when the coloumn is created, then never modified.
chatcharAmount of characters typed in chat.
chatsAmount of chat messages sent.
placedAmount of blocks placed.
brokeAmount of blocks broken.

Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files

Bukkit