Skip to content

Commit

Permalink
Merge pull request #5 from Michielo1/bstats
Browse files Browse the repository at this point in the history
Bstats
  • Loading branch information
Michielo1 authored Oct 17, 2024
2 parents c06e864 + 23a9ce6 commit 4fa2199
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dependency-reduced-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
<pattern>com.google.gson</pattern>
<shadedPattern>com.michielo.antivpn.gson</shadedPattern>
</relocation>
<relocation>
<pattern>org.bstats</pattern>
<shadedPattern>me.michielo.bstats</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
Expand Down
14 changes: 14 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,33 @@
</repositories>

<dependencies>
<!-- Spigot -->
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.20.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<!-- GSON -->
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.10.1</version>
</dependency>
<!-- H2 filestorage -->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>2.1.210</version>
<scope>compile</scope>
</dependency>
<!-- BStats -->
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>3.0.2</version>
<scope>compile</scope>
</dependency>
</dependencies>

<build>
Expand All @@ -64,6 +74,10 @@
<pattern>com.google.gson</pattern>
<shadedPattern>com.michielo.antivpn.gson</shadedPattern>
</relocation>
<relocation>
<pattern>org.bstats</pattern>
<shadedPattern>me.michielo.bstats</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/michielo/antivpn/AntiVPN.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.michielo.antivpn.bukkit.listener.PlayerJoinListener;
import com.michielo.antivpn.manager.CacheManager;
import com.michielo.antivpn.manager.ConfigManager;
import org.bstats.bukkit.Metrics;
import org.bukkit.plugin.java.JavaPlugin;

public class AntiVPN extends JavaPlugin {
Expand All @@ -21,6 +22,9 @@ public void onEnable() {

// commandhandler
this.getCommand("antivpn").setExecutor(new AntiVpnCommandListener());

// bstats
Metrics metrics = new Metrics(this, 23654);
}

@Override
Expand Down

0 comments on commit 4fa2199

Please sign in to comment.