bStats
Hello and welcome!
Today I want to show you my latest project I’m working on the last 3-4 month: bStats.
What is bStats?
bStats is a service/website which collects data for plugins. I started developing it about 4 month ago, because I was pretty annoyed that McStats was down for weeks (the last two month it was stable again) and I couldn’t find any alternatives. In the first place it was intended to be only used by me and some friends, but finally I decided to make it accessible to everyone who wants to use it. bStats is still in development, but already supports everything a good metrics service should have.
How do I use bStats?
bStats is as very easy to setup. It’s done in less than 5 minutes: All you need to do is to add the Metrics class to your plugin and register the plugin on the website. Just take a look here: Getting started.
Are custom charts supported?
Yes! Custom charts are very easy to implement.
Let’s say your plugin supports serveral languages which can be toggled in the configuration and you want to know which languages are the most used:
ConfigurationNode node; // A configuration node
metrics.addCustomChart(new Metrics.SimplePie("used_language") {
@Override
public String getValue() {
return node.getNode("language").getString("en");
}
});
The result may look like this one:
(Live preview)
A more detailed tutorial on how to setup custom charts can be found here. The examples are for Bukkit plugins, but the system is the same for Sponge.
What features are planned for the future
Though there are already lot’s of features which are still missing but planned:
- More custom chart types (e.g. map charts)
- Signature images!
- Plugin Ranking ✓
- Customizable plugin page (e.g. adding a description)
- Profile pages for developers (optional)
- Support for Bungeecord ✓
- Maven Repo! ✓
- Login with GitHub, Google, Twitter, …
- A documented REST-Api. ✓
- …
Sounds great! Can I support you?
- The best way to support me/bStats is to try it and give me feedback:
- Do you like the design of the website? Would you make things different?
- Did you find any bugs?
- Are all tutorials/descriptions clear or do you have any trouble using the service?
- Are there any spelling or grammar mistakes? English isn’t my mother tongue so there might be some mistakes.
- Are you missing some charts?
Beta? Is it already safe to use?
There may be some small downtimes or in the worst case lost data, but’s it’s already very stable. Futures versions of bStats will be completely downwards compatible so you can already integrate bStats in your plugin without being afraid it may break in the future. I already use bStats for my own plugin SafeTrade, so it’s in my own interest not to break anything.
Useful links
- Main Page
- Getting Started
- My plugin SafeTrade as an example: SafeTrade
- Custom Charts tutorial
- Global Stats (Bukkit / Spigot)
- Global Stats (Sponge)
- GitHub
- Discord