Skip to content

Commit

Permalink
Added Spyware (bStats)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaba committed May 14, 2023
1 parent a4870ff commit de71bf7
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 23 deletions.
72 changes: 51 additions & 21 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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.abdullaharafat.AfkPool</groupId>
<artifactId>afkpool</artifactId>
Expand All @@ -16,16 +17,16 @@
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<repository>
<id>sk89q-repo</id>
<url>https://maven.enginehub.org/repo/</url>
</repository>
<id>sk89q-repo</id>
<url>https://maven.enginehub.org/repo/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.19.4-R0.1-SNAPSHOT</version>
<version>LATEST</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand All @@ -34,23 +35,52 @@
<version>7.1.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>3.0.2</version>
<scope>compile</scope>
</dependency>
</dependencies>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/DolosArafat/AfkPool</url>
</repository>
</distributionManagement>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/DolosArafat/AfkPool</url>
</repository>
</distributionManagement>

<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<relocations>
<relocation>
<pattern>org.bstats</pattern>
<shadedPattern>com.abdullaharafat.AfkPool</shadedPattern>
</relocation>
</relocations>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>

</project>
</project>
4 changes: 2 additions & 2 deletions src/main/java/com/abdullaharafat/AfkPool/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ public void onEnable() {
VersionNumber = version;
});

int pluginId = 18474; // <-- Replace with the id of your plugin!
Metrics metrics = new Metrics(this, pluginId);
int pluginId = 18474;
new Metrics(this, pluginId);

Runnable[] tasks = new Runnable[] {
new Runnable() {
Expand Down

0 comments on commit de71bf7

Please sign in to comment.