Stats by Lolmewn
Stats - made by Lolmewn
Plugin description
Stats is an advanced statistics gathering plugin, currently focused on player statistics. Information such as PVP kills, blocks broken, playtime and much more. You can store this data as simple files, or store them in a MySQL database. The benefit of using the database is that you can also use any web-end out there to display your players' statistics on your website.
Installation instructions
To install the plugin, simply drag-and-drop the Stats.jar into your 'plugins' folder.
When you start the server, a "Stats" folder will be created, containing a config file.
For a detailed description on the config file, click here.
The most important option is "storage", which can be set to either "flatfile" or "mysql" by default.
If you choose MySQL, there is another file (mysql.yml). Fill in your MySQL details there. That's all!
If you're installing a web-end as well, please read the instructions for said web-end on how to install it.
A list of web-ends compatible with Stats 3:
Made one, too? Let me know!
List of available Stats
This is a list of all available stats. Please note that there might be more stats in your environment, as other plugins can add their own stats to the plugin. For those stats, please see the documentation of the plugin providing them.
| Stat name | Description | Available Metadata |
| Arrows | Amount of arrows shot (not hit!) | world |
| Beds entered | Self-explanatory | world |
| Blocks broken | Self-explanatory | world, name, data (see here for more info) |
| Blocks placed | Self-explanatory | world, name, data (see here for more info) |
| Buckets emptied | Self-explanatory | world |
| Buckets filled | Self-explanatory | world |
| Commands done | Amount of commands done | world |
| Damage taken | Self-explanatory | world, cause |
| Death | Amount of times died | world, cause |
| Eggs thrown | Self-explanatory | world |
| Fish caught | Self-explanatory | world |
| Items crafted | Self-explanatory | world, name |
| Items dropped | Self-explanatory | world, name |
| Items picked up | Self-explanatory | world, name |
| Joins | Amount of times joined the server | None |
| Kill | Amount of kills gotten | world, (name of) weapon, entityType |
| Last join | Last time (in milliseconds epoch time) joined the server | world |
| Last seen | Last time (in milliseconds epoch time) left the server | world |
| Money | Not yet functional | world |
| Move | Amount of blocks moved | world, type (0 = walking, 1 = boat, 2 = minecart, 3 = pig, 4 = on a pig in a minecart, 5 = horse, 6 = flying) |
| Omnomnom | Amount of food eaten | world |
| PVP | PVP kills gotten | world, victim (UUID of the other player), time (in milliseconds epoch time), (name of) weapon |
| PVP streak | Current kill-chain, gets reset when killed | world |
| PVP top streak | Highest PVP streak ever achieved - may be moved to Highscores in the future | world |
| Playtime | Time in seconds played on the server | world |
| Shears | Amount of sheeps sheared | world |
| Teleports | Amount of times teleported | world |
| Times kicked | Self-explanatory | world |
| Tools broken | Self-explanatory | world, name |
| Trades | Amount of times traded with a villager | world |
| Votes | Removed since 3.1.1-RC due to incompatibility. If the player name is not found, the vote is ignored | None |
| Words said | Amount of words said | world |
| Times changed world | Self-explanatory | None |
| Xp gained | Amount of XP gained in total | world |
Permissions
Some commands require special permissions to be executed. Here is a list with all permission nodes:
| Node | Default value | Description |
| stats.view | true | Access to /stats |
| stats.view.others | true | Access to /stats <player> |
| stats.custom | op | Gives access to nodes stats.add and stats.create |
| stats.add | op | Access to /stats add |
| stats.create | op | Access to /stats create |
| stats.admin | op | Access to /stats admin |
| stats.reset | op | Gives access to nodes stats.reset.self and stats.reset.others |
| stats.reset.all | op | Access to /stats reset all |
| stats.set | op | Access to /stats set |
| stats.sign.place | op | Can create [Stats] signs |
More info soon
Donations
If you feel like giving something back to me, you can donate to me. All income from donations will be spent on coffee or similar.
I'm accepting donations through:
- Bitcoins on address 1QC19kut8nuMJNAsMZ3QneKuW2a8f5QgQG
- Dogecoins on address DKN8Lrm4KfC7Jh9M2KopjPkwcRfA7Ak3zj
- Paypal, either via email lolmewn(at)gmail.com or via this link
-
View User Profile
-
Send Message
Posted Feb 15, 2015@Bajads
Try setting up a mysql database? I would suggest googling for some tutorials.
@Kaptainz12
It should still work, yeah.
-
View User Profile
-
Send Message
Posted Feb 14, 2015Hello,
While u r the owner of both plugins, does Stats still support the Highscores Plugin? and does the Highscores plugin works on the latest servers?
-
View User Profile
-
Send Message
Posted Feb 13, 2015I'm not able to connect to "MySQL database". When doing the automatic configuration and answering with this "MySQL-User: root MySQL-Pass: p4ssw0rd MySQL-Host: localhost MySQL-Port: 3306 MySQL-Database: minecraft" From the config I get this error "Connection to MySQL database failed! Starting over..."
I'm btw running my server with spigot! :)
I've come across this "Couldn't connect to global server! Maybe it's offline" but reading to your last comment, that doesn't seem to affect the problem. - Thanks for your help!
-
View User Profile
-
Send Message
Posted Feb 9, 2015@RoosSkywalker
Nothing to worry about. I have a global server for all statistics from everyone, but it's down and pretty dead right now. You can safely ignore the error :)
-
View User Profile
-
Send Message
Posted Feb 9, 2015Stats gives me an error: Couldn't connect to global server! Maybe it's offline... There is no global server, I only have one. What exactly does this error mean? Stats seems to be working fine in-game.
-
View User Profile
-
Send Message
Posted Feb 9, 2015@Kaptainz12
Pretty sure I'm compiling and testing against the latest version of Vault. Works fine in my test server.
-
View User Profile
-
Send Message
Posted Feb 9, 2015@Lolmewn
oh ok I'll post a thread on bukkit dev if someone can add the OverAllRank Stats for me because it interests the players to play more and know there overall rank. Is the plugin compatible with the latest version of Vault? Can u test the money problem personally to know if it occurs for you?
Thanks C: !
-
View User Profile
-
Send Message
Posted Feb 9, 2015@Kaptainz12
Don't think I'll be adding that feature myself. Scoreboard? Most likely. No idea what's causing the money problem as I literally only get the money though Vault and do nothing else with it.
Stats 3 will be released when I feel it's ready, not giving out ETA's to avoid sad people when I don't release it fast enough.
-
View User Profile
-
Send Message
Posted Feb 8, 2015@Lolmewn
ok, but as for the first feature, the overall rank could be for all type of stats, which would not be specifically for me, but I included the pvp {kills, deaths etc<sub>} stats to make it easier to explain. And Idk any Dev that can do the overall rank stats thing, but I'll post a thread on the forums, but if you will or will not add that feature tell me.</sub>
- and what about the ScoreBoard Feature? - as well as the Money calculating problem?
And when will you release stats 3?
Thanks C: !
-
View User Profile
-
Send Message
Posted Feb 8, 2015@Kaptainz12
Just check out the commands for custom stats, that's all that's possible with it :)
As for the features; First feature is a bit... specific to your case, I think. Some dev can hook into the API and add a stat though, that does exactly that.
As for formatting; This is planned (and partially integrated) for Stats 3.
@GodsDead
Somehow it seems Spigot 1.8 is causing quite a few issues, also with the profile fetcher. For now I'll just wait and see if Stats 3 has better tps.
@Retrinity
I'd rather not give ETA's. I still need to implement converters (from Stats 2 being the only one planned right now), commands and signs. Also an API.
-
View User Profile
-
Send Message
Posted Feb 8, 2015@Lolmewn
Any ETA when its safe to use stats 3.0?
Would the currently data be changed to the 3.0 format when updating?
Love the plugin btw <3
-
View User Profile
-
Send Message
Posted Feb 8, 2015Moved to spigot 1.8 yesterday, Since then the TPS reports are dramatic for stats, 5000%.
-
View User Profile
-
Send Message
Posted Feb 7, 2015@Lolmewn
ok, but What can the custom stats count or like how does it work? ,
like can u mention an example?
And what about the money, it does not calculate the money well, so in /stats my money is different than /balance.
last thing, I want to request some features C: !
Feature 1. add "Over All Rank", for the kills,deathes, like all the stats that have to do with the Pvp. like the overall rank, for example lets say 1000 players have played on the server, and everyone have the "Overallrank" stats in /stats, lets say my over all rank is 900. well I wish u got the point C: if not I will try to explain it in a better way, altho my English sucks :C !
Feature 2. We can customize /Stats, so I maybe wanted to make it more creative and nice, lets say I want to make it like this:-
INGAME DISPLAY
>>-------[Stats]-------<<
Kills: 521
Deathes: 367
Pvp: 888
PvpStreak: 6
TopPvpStreak: 21
OverAllRank: 67
>>------------------------<<
CONFIG DISPLAY
&6>>-------[&9Stats&6]-------<<
&7Kills: &e{Kills}
&8Deathes: &e{Death}
&7Pvp: &e{Pvp}
&8PvpStreak: &e{PvpStreak}
&7TopPvpStreak: &e{toppvpstreak}
&8OverAllRank: &e{OverAllRank}
&6>>------------------------<<
That is only an example, well I dunno if its too hard or not, But I wish you can add those features, because I hardly want them C: ! and another last feature I'd recommend, a Scoreboard for this plugin would be also nice, because infoboardreborn doesnt calculate the deathes. and I actually contacted the dev, but he didnt respond so thats why I am requesting this feature!
I wish you can add the first 2 features, the last feature is prefered only.
Thanks & sorry for losing your time!
-
View User Profile
-
Send Message
Posted Feb 7, 2015@Retrinity
Not yet. Stats 3 will have that removed, though. Not sure about going down with votes, unless there's errors in the console this shouldn't happen (and even with errors it's rare).
-
View User Profile
-
Send Message
Posted Feb 7, 2015Also he have the same stats in both worlds according to /Stats. Secondly he had 13 votes and got down to 10. (With this plugin according to /Stats)
-
View User Profile
-
Send Message
Posted Feb 7, 2015@Lolmewn
Anyway to remove world dependency atm?
-
View User Profile
-
Send Message
Posted Feb 6, 2015@Kaptainz12
stats.yml is for custom stats which you can create through in-game commands. You don't have to do anything with it :)
@Retrinity
It's tracked from when the plugin is installed and is also world-dependant. In Stats3.0 I've removed world dependency since it's just silly.
-
View User Profile
-
Send Message
Posted Feb 6, 2015@Retrinity
maybe the plugin "STATS" started to count votes after you installed it. Which are 12 votes. I'm not sure, just trying to help C: !
-
View User Profile
-
Send Message
Posted Feb 6, 2015Doesn't calculate my current money.
-
View User Profile
-
Send Message
Posted Feb 6, 2015Important bug: http://prntscr.com/61x0a0
The player votes isn't correct. I checked after errors this time, none. Also they get the rewards etc.
A user claims he had 13 votes and got down to 10 votes on a day :(