Skip to content
Merged
8 changes: 8 additions & 0 deletions .idea/artifacts/yeth.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

78 changes: 76 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,77 @@
<div style="text-align:center"><img src="res/banner.png" /></div>
<div align="center" id="top">
<img src="./res/banner.png" alt="Playerstatistics" />
</div>

# PlayerStatistics API - _All the statistics you need_
<h1 align="center">Playerstatistics API</h1>

<p align="center">
<a href="https://discord.gg/p8Brtwj"><img alt="Discord" src="https://img.shields.io/discord/435431724831211522?color=%237289DA&label=%20%E2%80%8E%20%E2%80%8E%20%E2%80%8EDiscord%20%E2%80%8E&logo=Discord&logoColor=%237289DA&style=flat-square"></a>
<a href="https://spigotmc.org/"><img alt="Spigot" src="https://img.shields.io/github/v/release/dream-n-delight/playerstatistics?color=%23EF8D1D&label=Spigot&style=flat-square"></a>
<a href="https://github.com/Dream-n-Delight/PlayerStatistics/releases"><img alt="Releases" src="https://img.shields.io/github/v/release/dream-n-delight/playerstatistics?color=%2354f95f&label=Latest%20Release&logo=GitHub&logoColor=%2354f95f&style=flat-square"></a>
<a href="https://en.wikipedia.org/wiki/MIT_License"><img alt="Discord" src="https://img.shields.io/github/license/dream-n-delight/playerstatistics?color=%23f9a154&label=License&style=flat-square"></a>
</p>
<p align="center">
<a href="https://github.com/Dream-n-Delight/PlayerStatistics/blob/pilot/README.md#dependencies">Dependencies</a> &#xa0; | &#xa0;
<a href="https://github.com/Dream-n-Delight/PlayerStatistics/blob/pilot/README.md#implementation">Implementation</a> &#xa0; | &#xa0;
<a href="https://github.com/Dream-n-Delight/PlayerStatistics/tree/pilot#getting-started">Getting Started</a> &#xa0;
</p>

*PlayerStatistics API makes storing and retrieving player statistics for player on a spigot/bukkit server alot easier. At its core, it stores every statistic for every player ever joined on a server onto your desired sql database. It handles all tables, sql functions and queries. You wanted to see how many diamond axes you've broken? We got it. You can either choose to [download](https://github.com/Dream-n-Delight/PlayerStatistics/releases) it as a spigot/bukkit plugin or use it as a library by following the steps down below.*

**NOTE:** Maven support is coming soon. We are currently waiting for our project to be accepted to Maven Central.

<br>
<br>

### Dependencies ###
- [**Spigot API** - 1.8+](https://hub.spigotmc.org/jenkins/job/BuildTools/)<br>
*Spigot-API is licensed under the GNU General Public License v3.0*<br>
- [**Java JDK** - 1.8+](https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html)<br>
*This software is licensed under the Oracle BSD License*

<br>
<br>

### Implementation ###

<h5>Maven</h5>

```xml
<description>
Coming Soon
</description>
```

<br>


<h5>Raw Jar file</h5>

1. Download the latest jar file from [here](https://github.com/dream-n-delight/playerstatistics/releases)
2. Open your preferred IDE and add a new external jar file to the project structure

<br>
<br>

### Getting Started ###

*Jump right in to using the your freshly added PlayerStatisticsAPI*
```java
# Example : using the StatisticsController object

import org.dreamndelight.playerstatistics.controllers.StatisticsController;

StatisticsController statisticsController = new StatisticsController();
UserData userData = statisticsController.getUserData("ad4b9f63-cf28-4fea-883c-474e6eec6253");

```

<br>
<br>

### License ###

This project is under license from MIT. For more details, see the [LICENSE](LICENSE.md) file.


Made with :heart: by <a href="https://github.com/overdodo" target="_blank">overdodo</a> and <a href="https://github.com/dehys" target="_blank">dehys</a>
75 changes: 37 additions & 38 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,58 +4,57 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.dehys</groupId>
<artifactId>PlayerStatistics</artifactId>
<version>1.0</version>
<groupId>org.dreamndelight</groupId>
<artifactId>playerstatistics</artifactId>
<version>1.1.7</version>

<name>${project.groupId}:${project.artifactId}</name>
<description>A library for getting/storing player statistics in a spigot-server environment.</description>
<url>https://github.com/dream-n-delight/PlayerStatistics</url>

<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
</license>
</licenses>

<developers>
<developer>
<name>dehys</name>
<email>arijan.nikoci@outlook.com</email>
<organization>Dream n Delight</organization>
<organizationUrl>http://dreamndelight.org</organizationUrl>
</developer>
<developer>
<name>overdodo</name>
<email>dodo.stenzi@gmx.de</email>
<organization>Dream n Delight</organization>
<organizationUrl>http://dreamndelight.org</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:git://github.com/dream-n-delight/playerstatistics.git</connection>
<developerConnection>scm:git:ssh://github.com:dream-n-delight/playerstatistics.git</developerConnection>
<url>http://github.com/dream-n-delight/playerstatistics/tree/release</url>
</scm>



<repositories>
<!-- This adds the Spigot Maven repository to the build -->
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
</repositories>

<dependencies>
<!--This adds the Spigot API artifact to the build -->
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.16.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>

<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.dehys.norbecore.Main</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dehys.norbecore.data;
package org.dreamndelight.playerstatistics.data;

import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.plugin.Plugin;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.dehys.norbecore.data;
package org.dreamndelight.playerstatistics.data;


import com.dehys.norbecore.enums.Statistic;
import com.dehys.norbecore.enums.Substatistic;
import org.dreamndelight.playerstatistics.enums.Statistic;
import org.dreamndelight.playerstatistics.enums.Substatistic;
import com.sun.istack.internal.NotNull;
import org.bukkit.Material;
import org.bukkit.entity.EntityType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.dehys.norbecore.data;
package org.dreamndelight.playerstatistics.data;

import com.dehys.norbecore.main.Main;
import org.dreamndelight.playerstatistics.main.Main;
import org.bukkit.Bukkit;

import java.sql.Connection;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.dehys.norbecore.data;
package org.dreamndelight.playerstatistics.data;

import com.dehys.norbecore.enums.Statistic;
import com.dehys.norbecore.enums.Substatistic;
import com.dehys.norbecore.main.Main;
import org.dreamndelight.playerstatistics.enums.Statistic;
import org.dreamndelight.playerstatistics.enums.Substatistic;
import org.dreamndelight.playerstatistics.main.Main;
import org.bukkit.Material;
import org.bukkit.OfflinePlayer;
import org.bukkit.entity.EntityType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.dehys.norbecore.data;
package org.dreamndelight.playerstatistics.data;

import com.dehys.norbecore.main.Main;
import org.dreamndelight.playerstatistics.main.Main;

import java.util.TimerTask;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.dehys.norbecore.data;
package org.dreamndelight.playerstatistics.data;

import com.dehys.norbecore.main.Util;
import org.dreamndelight.playerstatistics.main.Util;
import org.bukkit.OfflinePlayer;
import org.bukkit.entity.Player;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dehys.norbecore.enums;
package org.dreamndelight.playerstatistics.enums;

import java.util.Arrays;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dehys.norbecore.enums;
package org.dreamndelight.playerstatistics.enums;

public enum Substatistic {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.dehys.norbecore.listeners;
package org.dreamndelight.playerstatistics.listeners;

import com.dehys.norbecore.main.Main;
import com.dehys.norbecore.enums.Statistic;
import org.dreamndelight.playerstatistics.main.Main;
import org.dreamndelight.playerstatistics.enums.Statistic;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockBreakEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.dehys.norbecore.listeners;
package org.dreamndelight.playerstatistics.listeners;

import com.dehys.norbecore.enums.Statistic;
import com.dehys.norbecore.main.Main;
import org.dreamndelight.playerstatistics.enums.Statistic;
import org.dreamndelight.playerstatistics.main.Main;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.dehys.norbecore.listeners;
package org.dreamndelight.playerstatistics.listeners;

import com.dehys.norbecore.main.Main;
import com.dehys.norbecore.enums.Statistic;
import org.dreamndelight.playerstatistics.main.Main;
import org.dreamndelight.playerstatistics.enums.Statistic;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerDropItemEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.dehys.norbecore.listeners;
package org.dreamndelight.playerstatistics.listeners;

import com.dehys.norbecore.enums.Statistic;
import com.dehys.norbecore.main.Main;
import org.dreamndelight.playerstatistics.enums.Statistic;
import org.dreamndelight.playerstatistics.main.Main;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.enchantment.EnchantItemEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.dehys.norbecore.listeners;
package org.dreamndelight.playerstatistics.listeners;

import com.dehys.norbecore.main.Main;
import com.dehys.norbecore.enums.Statistic;
import org.dreamndelight.playerstatistics.main.Main;
import org.dreamndelight.playerstatistics.enums.Statistic;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.dehys.norbecore.listeners;
package org.dreamndelight.playerstatistics.listeners;

import com.dehys.norbecore.enums.Statistic;
import com.dehys.norbecore.main.Main;
import org.dreamndelight.playerstatistics.enums.Statistic;
import org.dreamndelight.playerstatistics.main.Main;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerFishEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.dehys.norbecore.listeners;
package org.dreamndelight.playerstatistics.listeners;

import com.dehys.norbecore.enums.Statistic;
import com.dehys.norbecore.main.Main;
import org.dreamndelight.playerstatistics.enums.Statistic;
import org.dreamndelight.playerstatistics.main.Main;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.EventHandler;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.dehys.norbecore.listeners;
package org.dreamndelight.playerstatistics.listeners;

import com.dehys.norbecore.main.Main;
import com.dehys.norbecore.enums.Statistic;
import org.dreamndelight.playerstatistics.main.Main;
import org.dreamndelight.playerstatistics.enums.Statistic;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerItemBreakEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.dehys.norbecore.listeners;
package org.dreamndelight.playerstatistics.listeners;

import com.dehys.norbecore.enums.Statistic;
import com.dehys.norbecore.main.Main;
import org.dreamndelight.playerstatistics.enums.Statistic;
import org.dreamndelight.playerstatistics.main.Main;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.dehys.norbecore.listeners;
package org.dreamndelight.playerstatistics.listeners;

import com.dehys.norbecore.main.Main;
import org.dreamndelight.playerstatistics.main.Main;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.dehys.norbecore.listeners;
package org.dreamndelight.playerstatistics.listeners;

import com.dehys.norbecore.enums.Statistic;
import com.dehys.norbecore.main.Main;
import org.dreamndelight.playerstatistics.enums.Statistic;
import org.dreamndelight.playerstatistics.main.Main;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dehys.norbecore.listeners;
package org.dreamndelight.playerstatistics.listeners;

import org.bukkit.event.Listener;

Expand Down
Loading