Skip to content

Commit 6d2d62c

Browse files
authored
Merge pull request #2 from Dream-n-Delight/pilot
merging into release
2 parents 9271da2 + 6d6a845 commit 6d2d62c

26 files changed

Lines changed: 175 additions & 93 deletions

.idea/artifacts/yeth.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 76 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,77 @@
1-
<div style="text-align:center"><img src="res/banner.png" /></div>
1+
<div align="center" id="top">
2+
<img src="./res/banner.png" alt="Playerstatistics" />
3+
</div>
24

3-
# PlayerStatistics API - _All the statistics you need_
5+
<h1 align="center">Playerstatistics API</h1>
6+
7+
<p align="center">
8+
<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>
9+
<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>
10+
<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>
11+
<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>
12+
</p>
13+
<p align="center">
14+
<a href="https://github.com/Dream-n-Delight/PlayerStatistics/blob/pilot/README.md#dependencies">Dependencies</a> &#xa0; | &#xa0;
15+
<a href="https://github.com/Dream-n-Delight/PlayerStatistics/blob/pilot/README.md#implementation">Implementation</a> &#xa0; | &#xa0;
16+
<a href="https://github.com/Dream-n-Delight/PlayerStatistics/tree/pilot#getting-started">Getting Started</a> &#xa0;
17+
</p>
18+
19+
*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.*
20+
21+
**NOTE:** Maven support is coming soon. We are currently waiting for our project to be accepted to Maven Central.
22+
23+
<br>
24+
<br>
25+
26+
### Dependencies ###
27+
- [**Spigot API** - 1.8+](https://hub.spigotmc.org/jenkins/job/BuildTools/)<br>
28+
*Spigot-API is licensed under the GNU General Public License v3.0*<br>
29+
- [**Java JDK** - 1.8+](https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html)<br>
30+
*This software is licensed under the Oracle BSD License*
31+
32+
<br>
33+
<br>
34+
35+
### Implementation ###
36+
37+
<h5>Maven</h5>
38+
39+
```xml
40+
<description>
41+
Coming Soon
42+
</description>
43+
```
44+
45+
<br>
46+
47+
48+
<h5>Raw Jar file</h5>
49+
50+
1. Download the latest jar file from [here](https://github.com/dream-n-delight/playerstatistics/releases)
51+
2. Open your preferred IDE and add a new external jar file to the project structure
52+
53+
<br>
54+
<br>
55+
56+
### Getting Started ###
57+
58+
*Jump right in to using the your freshly added PlayerStatisticsAPI*
59+
```java
60+
# Example : using the StatisticsController object
61+
62+
import org.dreamndelight.playerstatistics.controllers.StatisticsController;
63+
64+
StatisticsController statisticsController = new StatisticsController();
65+
UserData userData = statisticsController.getUserData("ad4b9f63-cf28-4fea-883c-474e6eec6253");
66+
67+
```
68+
69+
<br>
70+
<br>
71+
72+
### License ###
73+
74+
This project is under license from MIT. For more details, see the [LICENSE](LICENSE.md) file.
75+
76+
77+
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>

pom.xml

Lines changed: 37 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,58 +4,57 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

7-
<groupId>com.dehys</groupId>
8-
<artifactId>PlayerStatistics</artifactId>
9-
<version>1.0</version>
7+
<groupId>org.dreamndelight</groupId>
8+
<artifactId>playerstatistics</artifactId>
9+
<version>1.1.7</version>
10+
11+
<name>${project.groupId}:${project.artifactId}</name>
12+
<description>A library for getting/storing player statistics in a spigot-server environment.</description>
13+
<url>https://github.com/dream-n-delight/PlayerStatistics</url>
14+
15+
<licenses>
16+
<license>
17+
<name>MIT License</name>
18+
<url>http://www.opensource.org/licenses/mit-license.php</url>
19+
</license>
20+
</licenses>
21+
22+
<developers>
23+
<developer>
24+
<name>dehys</name>
25+
<email>arijan.nikoci@outlook.com</email>
26+
<organization>Dream n Delight</organization>
27+
<organizationUrl>http://dreamndelight.org</organizationUrl>
28+
</developer>
29+
<developer>
30+
<name>overdodo</name>
31+
<email>dodo.stenzi@gmx.de</email>
32+
<organization>Dream n Delight</organization>
33+
<organizationUrl>http://dreamndelight.org</organizationUrl>
34+
</developer>
35+
</developers>
36+
37+
<scm>
38+
<connection>scm:git:git://github.com/dream-n-delight/playerstatistics.git</connection>
39+
<developerConnection>scm:git:ssh://github.com:dream-n-delight/playerstatistics.git</developerConnection>
40+
<url>http://github.com/dream-n-delight/playerstatistics/tree/release</url>
41+
</scm>
42+
43+
1044

1145
<repositories>
12-
<!-- This adds the Spigot Maven repository to the build -->
1346
<repository>
1447
<id>spigot-repo</id>
1548
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
1649
</repository>
1750
</repositories>
1851

1952
<dependencies>
20-
<!--This adds the Spigot API artifact to the build -->
2153
<dependency>
2254
<groupId>org.spigotmc</groupId>
2355
<artifactId>spigot-api</artifactId>
2456
<version>1.16.2-R0.1-SNAPSHOT</version>
2557
<scope>provided</scope>
2658
</dependency>
2759
</dependencies>
28-
29-
<build>
30-
<plugins>
31-
<plugin>
32-
<artifactId>maven-compiler-plugin</artifactId>
33-
<version>3.8.0</version>
34-
<configuration>
35-
<source>1.8</source>
36-
<target>1.8</target>
37-
</configuration>
38-
</plugin>
39-
40-
<plugin>
41-
<artifactId>maven-shade-plugin</artifactId>
42-
<version>3.1.1</version>
43-
<executions>
44-
<execution>
45-
<phase>package</phase>
46-
<goals>
47-
<goal>shade</goal>
48-
</goals>
49-
<configuration>
50-
<transformers>
51-
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
52-
<mainClass>com.dehys.norbecore.Main</mainClass>
53-
</transformer>
54-
</transformers>
55-
</configuration>
56-
</execution>
57-
</executions>
58-
</plugin>
59-
</plugins>
60-
</build>
6160
</project>

src/main/java/com/dehys/norbecore/data/ConfigManager.java renamed to src/main/java/org/dreamndelight/playerstatistics/data/ConfigManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.dehys.norbecore.data;
1+
package org.dreamndelight.playerstatistics.data;
22

33
import org.bukkit.configuration.file.FileConfiguration;
44
import org.bukkit.plugin.Plugin;

src/main/java/com/dehys/norbecore/data/PlayerStatistic.java renamed to src/main/java/org/dreamndelight/playerstatistics/data/PlayerStatistic.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package com.dehys.norbecore.data;
1+
package org.dreamndelight.playerstatistics.data;
22

33

4-
import com.dehys.norbecore.enums.Statistic;
5-
import com.dehys.norbecore.enums.Substatistic;
4+
import org.dreamndelight.playerstatistics.enums.Statistic;
5+
import org.dreamndelight.playerstatistics.enums.Substatistic;
66
import com.sun.istack.internal.NotNull;
77
import org.bukkit.Material;
88
import org.bukkit.entity.EntityType;

src/main/java/com/dehys/norbecore/data/SQL.java renamed to src/main/java/org/dreamndelight/playerstatistics/data/SQL.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
package com.dehys.norbecore.data;
1+
package org.dreamndelight.playerstatistics.data;
22

3-
import com.dehys.norbecore.main.Main;
3+
import org.dreamndelight.playerstatistics.main.Main;
44
import org.bukkit.Bukkit;
55

66
import java.sql.Connection;

src/main/java/com/dehys/norbecore/data/StatisticsManager.java renamed to src/main/java/org/dreamndelight/playerstatistics/data/StatisticsManager.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package com.dehys.norbecore.data;
1+
package org.dreamndelight.playerstatistics.data;
22

3-
import com.dehys.norbecore.enums.Statistic;
4-
import com.dehys.norbecore.enums.Substatistic;
5-
import com.dehys.norbecore.main.Main;
3+
import org.dreamndelight.playerstatistics.enums.Statistic;
4+
import org.dreamndelight.playerstatistics.enums.Substatistic;
5+
import org.dreamndelight.playerstatistics.main.Main;
66
import org.bukkit.Material;
77
import org.bukkit.OfflinePlayer;
88
import org.bukkit.entity.EntityType;

src/main/java/com/dehys/norbecore/data/StatisticsTimer.java renamed to src/main/java/org/dreamndelight/playerstatistics/data/StatisticsTimer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
package com.dehys.norbecore.data;
1+
package org.dreamndelight.playerstatistics.data;
22

3-
import com.dehys.norbecore.main.Main;
3+
import org.dreamndelight.playerstatistics.main.Main;
44

55
import java.util.TimerTask;
66

src/main/java/com/dehys/norbecore/data/UserData.java renamed to src/main/java/org/dreamndelight/playerstatistics/data/UserData.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
package com.dehys.norbecore.data;
1+
package org.dreamndelight.playerstatistics.data;
22

3-
import com.dehys.norbecore.main.Util;
3+
import org.dreamndelight.playerstatistics.main.Util;
44
import org.bukkit.OfflinePlayer;
55
import org.bukkit.entity.Player;
66

0 commit comments

Comments
 (0)