Improved documentation, (#120)

This commit is contained in:
Artemis-the-gr8 2022-08-28 15:17:16 +02:00
parent c713879312
commit d1cb3d37c9
4 changed files with 12 additions and 6 deletions

View File

@ -4,7 +4,7 @@
<groupId>io.github.ithotl</groupId>
<artifactId>PlayerStats</artifactId>
<name>PlayerStats</name>
<version>1.7.2</version>
<version>1.8</version>
<description>Statistics Plugin</description>
<url>https://www.spigotmc.org/resources/playerstats.102347/</url>
<developers>
@ -107,7 +107,6 @@
<executions>
<execution>
<id>attach-sources</id>
<phase>deploy</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
@ -120,7 +119,6 @@
<executions>
<execution>
<id>sign-artifacts</id>
<phase>deploy</phase>
<goals>
<goal>sign</goal>
</goals>
@ -133,7 +131,6 @@
<executions>
<execution>
<id>attach-javadocs</id>
<phase>deploy</phase>
<goals>
<goal>jar</goal>
</goals>

View File

@ -6,7 +6,7 @@
<groupId>io.github.ithotl</groupId>
<artifactId>PlayerStats</artifactId>
<version>1.7.2</version>
<version>1.8</version>
<name>PlayerStats</name>
<description>Statistics Plugin</description>

View File

@ -30,6 +30,15 @@ public interface PlayerStats {
return Main.getPlayerStatsAPI();
}
/**
* Gets the current version of PlayerStatsAPI.
* Use this method to ensure the correct version of
* PlayerStats is running on the server before
* accessing further API methods, to prevent
* <code>ClassDefNotFoundExceptions</code>.
*
* @return the version of PlayerStatsAPI present on the server
*/
default String getVersion() {
return "1.8";
}

View File

@ -1,6 +1,6 @@
main: com.artemis.the.gr8.playerstats.Main
name: PlayerStats
version: 1.7.2
version: 1.8
api-version: 1.13
description: adds commands to view player statistics in chat
author: Artemis_the_gr8