Statz icon

Statz -----

The one-and-all plugin to record and store stats about any player.




The same issue that was present in Autorank's code was also present here. So here's a hotfix that solves the issue!

For a changelog:
https://github.com/Staartvin/Statz/releases/tag/v1.6.2

Did you know Statz has a new wiki? See https://statz.staartvin.com/
----------, Feb 2, 2021

If you're running Autorank you should definitely both run Statz and Autorank!

Changelog can be found here.
----------, Feb 1, 2021

Changes from the previous version:
  • Use HikariCP as MySQL connection manager. This will not change anything for you admins, but provides a more stable connection to the SQL database used by Statz.
  • GUI of inventory has been improved significantly
  • Prevent error when storing commands that are too long in the database
  • It is no longer required to download PluginLibrary, as Statz will automatically load it from within its own source code. You can now remove it from your plugins folder!
New features:
  • Statistics of offline players will now be included when importing from vanilla statistics
If you are also running Autorank, make sure to update it too: https://github.com/Staartvin/Autorank-2/releases/tag/v4.4
----------, Jul 8, 2020

This release contains the following updates from the previous version:
  • There is a new option 'enable logging' that allows you to enable or disable logging behavior. By default, it is set to false.
  • The debug output is also disabled by default.
  • When right-clicking on the Statz GUI, the player will go back to the main menu. No more typing the command again!
  • Statz now longer keeps track of how far an arrow was pulled back before it was shot to preserve some space in storage.
  • The patches system is overhauled:
    • Statz will automatically apply patches to your database if needed.
    • Statz will automatically check if patches are needed before performing them.
    • Statz will automatically create backups of your database before patching, so you can rollback if something went wrong or you want to rollback.
    • There is an option in the config to disable automatic backups of your database before patching. By default, Statz will make automatic backups.
    • Note that you will need to specify a different database where Statz will store the backups of your server.
  • Fix issue where Paper servers didn't properly show messages from Statz.
  • Fix issue where Statz would start crying if it couldn't find PluginLibrary (even though it's not strictly necessary).
----------, Dec 1, 2019

After a long hiatus, I'm finally back to update my precious plugins. This means I'll be updating PluginLibrary, Statz and Autorank all together. It also means that if you update one of them, you'll need to update all of them!

This new update includes the following things:
- Support for MC 1.14. It has not been tested on MC 1.13 and so don't try to use it on there.
- It's good to know that Stats 5 has changed so drastically that I can't support it (yet). I'm looking into their new API, but I'm not sure if I will be able to.

Have fun using Statz! Make sure to report bugs on the issue tracker!
----------, Nov 14, 2019

You never like waiting for plugins to update. That's why I quickly updated to Minecraft 1.13. Statz will now run on Spigot 1.13 servers! You can only run this version on MC 1.13 server software (so no Spigot 1.12.2).

Before you upgrade, please do make a backup of your database! If you lose data, you can revert to the old database.

Make sure to update PluginLibrary and Autorank as well!
----------, Jul 23, 2018

This update resolves the issue that some people experienced due to the database not updating properly.

It is therefore recommended to update!

Note that I'll be preparing for the major 1.13 update that is due to arrive soon.
----------, Jul 9, 2018

After some more testing, I found out that there were some issues with the API Statz provided to other plugins. Statz did not report the statistics of a player correctly to third-party plugins.This has now been fixed.

If you are using Autorank, it is strongly recommended to update to this version.
----------, Apr 28, 2018

I'm happy to say I got a new release for Statz with tons of bug fixes and new features. Here's a list:

- Statz will not track NPC's anymore.
- Updated Javadocs for developers
- Statz will now try to autocomplete your command when you press tab when typing a command.
- Statz does not use BungeeCord color anymore, hence it should be usable on other server software as well (Paper, Bukkit).
- You can now change descriptions of statistics and configure a GUI icon (see the statistics folder)!
- Rewrote Statz's internal database manager. It is now more efficient in sending queries to the database.
- Statz now uses a proper caching manager. When you request data from a player, it will cache the data so your server won't get strained trying to retrieve data from the database. This means Statz is now faster!
- Updated documentation of a lot of methods (yay for developers!)
- Statz will no periodically send updates to database on a per user basis. This means that Statz is now more efficient when few players are online.
- Fix CRAFTING statistic not correctly counting the number of items crafted.

If you are using Autorank, make sure to update Autorank as well!
----------, Apr 25, 2018

Changelog:
- Fix issue with Statz reporting errors when PluginLibrary was not installed.
- Change command /statz migrate to /statz migrate stats3.
- Fix Statz recording data of Citizens.
----------, Nov 12, 2017

Note that this version only works with MC 1.10 and above!

Quite a few things have changed for Statz in this update. See the list below.

- Statz will now check whether you are running a minimum version of Minecraft. Statz 1.4.4 only supports MC 1.10 or higher.
- Statz now allows you to check statistics of players using a graphical interface. Type /statz list to see your own statistics. You can also use /statz list <player> to view someone else's data. Make sure to enable 'use statz gui' in the configuration file for it to work!
- If you want Statz to gather data from other plugins, you will now need PluginLibrary to do this! This is also true if you need to transfer data from Stats 3 to Statz.
- Fixed an issue where Wither skeletons and Elder guardians were not correctly counted as killed.
- Statz will now stop showing the 'database is saved' message by default. However, if you're upgrading to this version and want to disable this message, please look in the config for 'show database save message' and set it to false.
- Disable SSL for MySQL database connections.
- Improve the documentation of Statz methods.
- You can now use the keyword 'force' to look up a player's statistics if he is not online, like this: /statz list Staartvin force or /statz list Staartvin 2 force or /statz list Staartvin KILLS_MOBS force

If you encounter any bugs, please report them at the bug tracker!
----------, Nov 7, 2017

Note that this version only works with MC version 1.9 and above!

I've updated the following dependencies of Statz:

- AcidIsland
- AfkTerminator
- ASkyBlock
- EssentialsX
- Factions
- Jobs
- NuVotifier
- RPGme
- UltimateCore
- WorldGuard
----------, Mar 4, 2017

Note that this version only works with MC version 1.9 and above!

Hey there,

I've received valuable feedback and many bug reports to squash. Here is a changelog:
- Fix /statz list command not working even though a player had correct permissions
- Add a patch system that will keep your database schema up-to-date with the latest changes (it will do this automatically).
- Statz now records with what weapon a player killed a mob
- Statz also records mob kills with a bow
- Statz will now track how far a player has traveled with elytra wings


BEFORE UPDATING, BACK UP YOUR STATZ FOLDER SO YOU CANNOT LOSE DATA.

For those of you that wondered what happened to Statz 1.4.1: I skipped it as an internal version. Don't worry about it.
----------, Feb 3, 2017

I've worked on some minor fixes, added a new command and greatly improved the API and its documentation.

A full list of changes:
- Fix /statz not showing custom stat pages even though it was turned on in the config.
- Started working on support for disabling statistics in Worldguard regions or GriefPrevention claims.
- Statz now records HUSKs and STRAYs.
- Fix Statz not counting mobs killed with a bow as being killed by a player
- Fix votes still being counted even though you had it disabled in the config.
- Added /statz purge <time> command to remove players from the database that have not been online for a while. For more info, click here.
- Instead of the regular statz.list permission, I have now split the permission into two: statz.list.self and statz.list.others to check your own stats and those of others respectively.

Updates for developers:
- Other plugins can now obtain data more easily by listening to the UpdateDataEvent that Statz fires when it updates its database.
- I have added a lot of new examples and documentation on new methods and already existing ones.
- I've updated the API page on the wiki on Github. Please read it and see if you are missing anything!
----------, Nov 11, 2016

Hey there again,

I'm just releasing a small hotfix that patches a bug where Statz could crash if Stats 3 was not found. Enjoy using Statz!
----------, Nov 3, 2016

Hello dear admins,

A new update of Statz has come! Changes include:
  • Fixed /statz sometimes showing wrong page.
  • Statz will now provide suggestions when you press TAB after typing /statz list
  • Added a command to migrate data from Stats 3 to Statz! Check out /statz migrate.
  • Fixed a bug where sometimes the permissions of a command were not checked for the command sender.
  • Some low-level changes for developers and third party plugins hooking into Statz' API.
----------, Nov 1, 2016

In this version of Statz votes are now properly recorded (both for Votifier and NuVotifier).

Be sure to download this version!

Thanks to Gunnerrrr from mc.dyncraft.org for letting me test Votifier and NuVotifier support of Statz!
----------, Aug 27, 2016

People have reported a few issues with Statz 1.3 and so I've worked on fixes for these! I represent the bugfixes:

  • Fix errors when NuVotifier was not installed on the server.
  • Fix stacktrace when log manager was not initiated properly and Statz tried to write to a log file.
  • Added an option to enable/disable debug messages in the console (see config.yml)
  • Fix Statz not storing when a player killed a 'killer bunny'.
  • Fixed error when Jobs Reborn v3.5.7 was installed. Due to a change in files in Jobs Reborn, Statz 1.3.1 only supports 3.5.7 and higher. If you're running Jobs Reborn, make sure to update!

When you find any other bugs or errors, please report them on the bug tracker!
----------, Aug 9, 2016

Welcome, welcome, to the new Statz! I'm just back from my holiday to Austria (yes, it was great! Thanks for asking!) and I've already got a new version of Statz ready to present to you! I've done some major overhauling of some parts of Statz, so be sure to upgrade as soon as possible.

Changes include:
  • RPGme support has now been included! Statz will track the average level of a player, the level of each skill, the experience of each level, the combat level of a player, the total level of a player and the other players in a party.
  • Fixed an issue where renaming a mob and killing it would store the mob's name in the database and not the type of the mob. For example, if you called your chicken 'COW' and killed it, Statz would increment the kills for cows instead of chickens.
  • Implemented a major change in the way Statz updates its database. The server load of Statz should be improved by quite a big factor.
  • Added commands!
    • /statz help - Check the list of commands
    • /statz check (player) - Check the statistics of a player (player is optional) (You can also click on any of the stats shown in the command to get more detailed info about the statistic)
    • /statz info <statType> (player) - Check a specific stat of a player. Player parameter is optional, statType is required.
    • /statz transfer - Transfer data from SQLite database to MySQL.
    • /statz transfer reverse - Transfer data from MySQL database to SQLite.
    • /statz hooks - Lists all plugins that Statz is hooked into.
  • Added a way to disable any statistic in the config! See this for more info about different statistics.
  • Introduced the LogManager. Every time you start up your server, Statz will log all its actions to a log file that can be found in the /plugins/Statz/logs/ folder.
  • Added an option to disable stat tracking when in creative (see config).
  • Fixed crash when Statz and Autorank were both using MySQL and interfering with each other.
  • Added support for NuVotifier!
  • Added a whole lot of new statistics that Statz can track:
    • Number of tools broken
    • Number of beds entered
    • Times kicked
    • Commands performed
    • Arrows shot
    • Items dropped
    • Buckets emptied
    • Buckets filled
    • Items picked up
    • Number of times switched from world
    • Number of teleports
    • Eggs thrown
    • Times traded with a villager

As you can see, quite an extensive list. I hope you enjoy Statz!
----------, Aug 1, 2016

Statz v1.2 introduced support for GriefPrevention, but it has a few bugs that caused Autorank to function incorrectly. These issues have been resolved in Statz v1.2.1.
----------, Jul 21, 2016

Since Statz is a newly created plugin, there are bound to be some bugs and shortcomings. This update fixes most of the bugs and introduces full MySQL support.

Changes include:
  • GriefPrevention is now supported by Statz. Statz can obtain four new data entries:
    1. Number of claims of a player
    2. Number of claimed blocks of a player
    3. Number of remaining blocks a player can claim
    4. Number of bonus blocks a player can claim
  • Fixed an error when players were moving incorrectly and Statz tried to calculate the distance of their incorrect movement
  • Fixed a major bug that gave players that had no data stored in the Statz database an incorrect starting value. Usually, this value was the combined of all values in the database at the time of searching. I apologize for this incorrect behavior. Some values of players should be manually reset to correct it.
  • Add MySQL support! Statz will now use either SQLite (for those who don't have access to a MySQL database) or MySQL to store its data. You can configure your database settings in the configuration file.
  • Fixed errors that had to do with the concurrent modifying and reading of data lists.
  • Changed around some of the API functions (mostly interesting for developers, not so much for admins).
  • Fixed issue that stopped Statz from saving data to its database when the server was stopped before Statz finished its 'save cycle'
  • Statz will now inform the console whether it uses MySQL or SQLite and if it could connect to the database.
  • Statz now uses batch processing of updates that are sent to the server to improve performance and decrease server load. (see this commit for more info)
Like always, I'm not done with updating Statz. If you find any bugs or think of a new feature you want Statz to have, post it in the forum! Note, though, that I'm on holiday and do not have all the time in the world.

Lastly, if you run Autorank. Do not upgrade to this version of Statz and wait for Autorank 3.9. Autorank 3.8 and Statz 1.2 do not work together!
----------, Jul 21, 2016

Hey there! A new update of Statz is available.

Changes include:
  • Statz will now show which (compatible) third party plugins were found and can be used by Statz.
  • There is now a config available that allows you to disable stats tracking and the database save message.
  • I've been hard at work to include new dependencies:
  • McMMO:
    • skill level: Statz will track the level of any player of any skill.
    • power level: Statz can track the power levels of players
  • AcidIsland:
    • island level: does a player have an island and what is their island level?
  • ASkyBlock:
    • island level: does a player have an island and what is their island level?
  • AFKTerminator:
    • afk: Statz checks whether a player is AFK according to AFKTerminator
  • EssentialsX:
    • afk: is a player AFK according to EssentialsX?
    • geo location: what is the GEO location of a player's IP?
  • Factions:
    • faction power: what is the faction power level of a player's faction?
  • Jobs:
    • current points: how many points does a player currently have in Jobs?
    • total points: how many points did a player obtain in total in Jobs
    • current xp: how much experience does a player currently have in a particular job?
    • current level: what is the current level of a certain job of a player?
  • OnTime:
    • play time: what is the play time of a player according to OnTime?
  • RoyalCommands:
    • afk: is a player AFK according to RoyalCommands?
  • Stats:
    • all data: all data that is stored by Stats can also be obtained via Statz.
  • UltimateCore:
    • afk: is a player AFK according to UltimateCore?
  • Vault:
    • permission plugins: what permissions plugins are running?
    • economy plugins: what economy plugins are running?
  • WorldGuard:
    • current region: in what region is a player currently?

Remember, Statz will become premium upcoming Thursday (14 july 2016), see more info about that here: https://www.spigotmc.org/resources/autorank.3239/update?update=103669
----------, Jul 12, 2016

Resource Information
Author:
----------
Total Downloads: 36,354
First Release: Jul 6, 2016
Last Update: Feb 2, 2021
Category: ---------------
All-Time Rating:
49 ratings
Find more info at github.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings