HomeJavaModsMetricCommon
MetricCommon
MetricCommons is a common library for a self hosted, one plugin, metric system on cloud services (such as AWS). It also provides a interface to all plugins who use it.

Here is a example that sends data to the localhost server at port 3000 and the version of the plugin. (you need to add it as a dependency to your YML, too.)
Code (Text):

@Override
    public void onEnable() {
            getLogger().info("DEBUG MODE ENABLED");
            MetricService.sendData("localhost", 3000, this.getDescription().getVersion());
            MetricService.endData();
    }
 
The download includes the full package including the networking libraries and the JSON library. Simply, just run the download in a terminal:
Code (Text):
java -jar <metricJar>.jar <ip> <port>
Simply input your prefered IP and port, and you have your own self-hosted server. The server includes several commands:

You can also interact with the server via external program to access the server's databanks by using the server's PacketAllData handler and it will send you the FormatContainer as a JSON.

You can also use this for multiple plugins by running the servers on different ports and different threads to allow you to use one system for multiple plugins.

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

MetricCommon is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9, 1.10. Downloaded 174 times (via Spigot). Download it and open it directly in the game.

Explore more