Skip to content

teraprath/StatsAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

StatsAPI

for Spigot 1.19+

Features

  • Easy to use and lightweight
  • MySQL-Support
  • Stats Command (100% Configurable)
  • Kills, Deaths, Wins, Loses, Played Games, Streaks & Game Points
  • Compatible with PointsAPI

Implementation

You can see the latest version here.

Using Maven:

<repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
</repository>
<dependency>
    <groupId>com.github.teraprath</groupId>
    <artifactId>StatsAPI</artifactId>
    <version>INSERT_VERSION_HERE</version>
</dependency>

Using Gradle:

repositories {
    maven { url 'https://jitpack.io' }
}
dependencies {
    implementation 'com.github.teraprath:StatsAPI:INSERT_VERSION_HERE'
}

Basic Usage

An example code using the StatsAPI.

PlayerStats stats = StatsAPI.getPlayer(player);

stats.setKills(amount)
stats.setWins(stats.getWins() + 1)

StatsAPI.save(stats);

Visit wiki page to see usage guide.