Compare commits

...

11 Commits
v2.0 ... main

Author SHA1 Message Date
Artemis-the-gr8 de458d5e43 Release v2.2 - updated version number in plugin.yml that I forgot about 2024-01-19 12:00:22 +01:00
Artemis-the-gr8 e98f978315 Release v2.2 - updated Adventure API and PlaceholderAPI for 1.20.4 compatibility 2024-01-19 11:51:02 +01:00
Artemis-the-gr8 919d44f38b Updated to v2.1 for release 2023-10-26 11:36:28 +02:00
Artemis-the-gr8 d435cc92ea Updated PlaceholderAPI and adventure API (#143) 2023-10-12 12:02:46 +02:00
Elise 1bbfde90bd
Update README.md 2023-10-11 12:05:14 +02:00
Elise f2eb54282c
Update README.md 2023-08-12 13:39:51 +02:00
Artemis-the-gr8 6c2b64ed64 Merge remote-tracking branch 'origin/main' 2023-06-12 12:56:25 +02:00
Artemis-the-gr8 e9f0992acb Updated dependencies 2023-06-12 12:55:54 +02:00
Elise bb67e355e1
Update README.md 2023-03-24 12:08:33 +01:00
Elise 8245302c79
Update README.md 2023-03-24 12:03:37 +01:00
Elise 3a71a6af70
Update README.md 2023-03-02 12:29:24 +01:00
5 changed files with 45 additions and 38 deletions

View File

@ -5,12 +5,14 @@
## About
PlayerStats is a Minecraft server plugin that adds a command to view player statistics in
top-10 format or individually. Currently tested on all versions between **1.16.5** and **1.19.3** on platforms:
top-10 format or individually. Currently tested on all versions between **1.16.5** and **1.20.1** on platforms:
- Bukkit
- Spigot
- Paper
- Purpur
(It's possible PlayerStats works on other platforms too, but these are the ones I have explicitly tested.)
 
## Features
@ -59,6 +61,7 @@ top-10 format or individually. Currently tested on all versions between **1.16.5
![Translated](src/main/resources/images/translated.png)
- Only show statistics for **whitelisted** players
- Exclude statistics from **banned** players
- Exclude statistics from specific players with `/statexclude`
- Limit who is allowed to **share statistics** in chat and how often players can share
- Limit statistics based on when a player **last joined**.
This option can be particularly useful if you have had a lot of players join your server in the past
@ -71,6 +74,7 @@ top-10 format or individually. Currently tested on all versions between **1.16.5
- `playerstats.stat` for using the general command (true for everyone by default)
- `playerstats.share` for sharing statistics in chat (true for everyone by default)
- `playerstats.reload` for reloading the config (only for OP players by default)
- `playerstats.exclude` to exclude players from top- and server-statistics (only for OP players by default)
 
@ -89,12 +93,12 @@ To import the PlayerStats API with Maven, add the following dependency and repos
<dependency>
<groupId>io.github.ithotl</groupId>
<artifactId>PlayerStats</artifactId>
<version>1.7.2-SNAPSHOT</version>
<version>2.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
```
You can download the sources and Javadocs through your code editor, or visit the Javadocs [here](https://s01.oss.sonatype.org/service/local/repositories/snapshots/archive/io/github/ithotl/PlayerStats/1.7.2-SNAPSHOT/PlayerStats-1.7.2-20220820.193831-3-javadoc.jar/!/com/artemis/the/gr8/playerstats/api/PlayerStats.html).
You can download the sources and Javadocs through your code editor, or visit the Javadocs [here](https://s01.oss.sonatype.org/service/local/repositories/snapshots/archive/io/github/ithotl/PlayerStats/2.0-SNAPSHOT/PlayerStats-2.0-20230228.110241-1-javadoc.jar/!/com/artemis/the/gr8/playerstats/api/PlayerStats.html).
To get an instance of the API, you can do the following:
```java

View File

@ -4,7 +4,7 @@
<groupId>io.github.ithotl</groupId>
<artifactId>PlayerStats</artifactId>
<name>PlayerStats</name>
<version>2.0</version>
<version>2.2</version>
<description>Statistics Plugin</description>
<url>https://www.spigotmc.org/resources/playerstats.102347/</url>
<developers>
@ -29,7 +29,7 @@
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<version>3.11.0</version>
<configuration>
<source>16</source>
<target>16</target>
@ -37,7 +37,7 @@
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>3.3.0</version>
<version>3.4.1</version>
<executions>
<execution>
<phase>package</phase>
@ -103,11 +103,11 @@
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<version>3.3.0</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<phase>deploy</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
@ -116,11 +116,11 @@
</plugin>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<version>3.1.0</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<phase>deploy</phase>
<goals>
<goal>sign</goal>
</goals>
@ -129,11 +129,11 @@
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.1</version>
<version>3.5.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
<phase>verify</phase>
<phase>deploy</phase>
<goals>
<goal>jar</goal>
</goals>
@ -160,12 +160,12 @@
<dependencyLink>
<groupId>net.kyori</groupId>
<artifactId>adventure-api</artifactId>
<url>https://jd.adventure.kyori.net/api/4.11.0/</url>
<url>https://jd.adventure.kyori.net/api/4.14.0/</url>
</dependencyLink>
<dependencyLink>
<groupId>net.kyori</groupId>
<artifactId>adventure-text-minimessage</artifactId>
<url>https://jd.adventure.kyori.net/text-minimessage/4.11.0/</url>
<url>https://jd.adventure.kyori.net/text-minimessage/4.14.0/</url>
</dependencyLink>
<dependencyLink>
<groupId>net.kyori</groupId>
@ -177,7 +177,7 @@
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.0.0</version>
<version>3.1.1</version>
</plugin>
</plugins>
</build>
@ -203,19 +203,19 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.19-R0.1-SNAPSHOT</version>
<version>1.20.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.11.2</version>
<version>2.11.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>23.0.0</version>
<version>24.0.1</version>
<scope>compile</scope>
</dependency>
</dependencies>
@ -231,6 +231,7 @@
</distributionManagement>
<properties>
<maven.compiler.target>16</maven.compiler.target>
<java.version>16</java.version>
<maven.compiler.source>16</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

39
pom.xml
View File

@ -6,7 +6,7 @@
<groupId>io.github.ithotl</groupId>
<artifactId>PlayerStats</artifactId>
<version>2.0</version>
<version>2.2</version>
<name>PlayerStats</name>
<description>Statistics Plugin</description>
@ -35,6 +35,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>16</java.version>
<maven.compiler.source>16</maven.compiler.source>
<maven.compiler.target>16</maven.compiler.target>
</properties>
@ -65,32 +66,32 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.19-R0.1-SNAPSHOT</version>
<version>1.20.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.kyori</groupId>
<artifactId>adventure-api</artifactId>
<version>4.11.0</version>
<version>4.15.0</version>
</dependency>
<dependency>
<groupId>net.kyori</groupId>
<artifactId>adventure-platform-bukkit</artifactId>
<version>4.1.2</version>
<version>4.3.2</version>
</dependency>
<dependency>
<groupId>net.kyori</groupId>
<artifactId>adventure-text-minimessage</artifactId>
<version>4.11.0</version>
<version>4.14.0</version>
</dependency>
<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.11.2</version>
<version>2.11.5</version>
<scope>provided</scope>
</dependency>
@ -103,14 +104,14 @@
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>3.0.0</version>
<version>3.0.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>23.0.0</version>
<version>24.0.1</version>
</dependency>
</dependencies>
@ -119,7 +120,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<version>3.11.0</version>
<configuration>
<source>16</source>
<target>16</target>
@ -128,7 +129,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.3.0</version>
<version>3.4.1</version>
<executions>
<execution>
<phase>package</phase>
@ -196,11 +197,11 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<version>3.3.0</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase> <!-- change to verify when deploying -->
<phase>deploy</phase> <!-- change to verify when deploying -->
<goals>
<goal>jar-no-fork</goal>
</goals>
@ -210,11 +211,11 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<version>3.1.0</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase> <!-- change to verify when deploying -->
<phase>deploy</phase> <!-- change to verify when deploying -->
<goals>
<goal>sign</goal>
</goals>
@ -224,11 +225,11 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.1</version>
<version>3.5.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
<phase>verify</phase> <!-- change to verify when deploying -->
<phase>deploy</phase> <!-- change to verify when deploying -->
<goals>
<goal>jar</goal>
</goals>
@ -256,13 +257,13 @@
<dependencyLink>
<groupId>net.kyori</groupId>
<artifactId>adventure-api</artifactId>
<url>https://jd.adventure.kyori.net/api/4.11.0/</url>
<url>https://jd.adventure.kyori.net/api/4.14.0/</url>
</dependencyLink>
<dependencyLink>
<groupId>net.kyori</groupId>
<artifactId>adventure-text-minimessage</artifactId>
<url>https://jd.adventure.kyori.net/text-minimessage/4.11.0/</url>
<url>https://jd.adventure.kyori.net/text-minimessage/4.14.0/</url>
</dependencyLink>
<dependencyLink>
@ -276,7 +277,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.0.0</version>
<version>3.1.1</version>
</plugin>
</plugins>
</build>

View File

@ -28,6 +28,7 @@ public final class StringUtils {
*/
public static String prettify(String input) {
if (input == null) return null;
//TODO remove excessive logging
MyLogger.logHighLevelMsg("Prettifying [" + input + "]");
StringBuilder capitals = new StringBuilder(input.toLowerCase(Locale.ENGLISH));

View File

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