Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Metrics extension
Java
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
.gitattributes
.gitignore
README.md
missing-tests.txt
pom.xml

README.md

DISCONTINUED

This project has been discontinued.

What is it?

Extension to Metrics. See the wiki for more information!

JavaDocs / Jenkins / Coding Conventions

How to use it

private BasicTracker tracker;

public void onEnable(){
    try{
        EMetrics metrics = new EMetrics(this);

        // Create a tracker for the graph "Interactions Graph"
        tracker = EMetrics.createBasicTracker("Interactions Graph", "Player Interactions"); 

        // Setup - All trackers must be added before metrics start!
        metrics.addTracker(tracker);
        metrics.startMetrics();
    }catch(IOException e){
        // Something in Metrics broke
    }
}

// ...

public void onInteract(PlayerInteractEvent event){
    tracker.increment();
}

JavaDocs can be seen here.

Maven

POM Information:

...
<dependency>
    <groupId>com.turt2live.metrics</groupId>
    <artifactId>MetricsExtension</artifactId>
    <version>0.0.5-SNAPSHOT</version> <!-- Note: This may not be up to date! Complain to turt2live if this is wrong -->
    <type>jar</type>
    <scope>compile</scope>
</dependency>
...
<repository>
    <id>turt2live-repo</id>
    <url>http://repo.turt2live.com</url>
</repository>
...

Compiling

Metrics Extension requires Maven 3 to compile.

Other Information

Released under GNU GPL v3.0

Feel free to copy/use my work, just link back to here. :)

Something went wrong with that request. Please try again.