Skip to content

Commit

Permalink
Add bStats integration
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Aug 17, 2022
1 parent 61b2f50 commit a9717c8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>codes.wasabi</groupId>
<artifactId>xclaim</artifactId>
<version>1.9.1</version>
<version>1.9.2</version>
<packaging>jar</packaging>

<name>XClaim</name>
Expand Down Expand Up @@ -63,6 +63,10 @@
<pattern>xyz.xenondevs.particle</pattern>
<shadedPattern>codes.wasabi.xclaim.particle</shadedPattern>
</relocation>
<relocation>
<pattern>org.bstats</pattern>
<shadedPattern>codes.wasabi.xclaim.bstats</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
Expand Down Expand Up @@ -212,5 +216,11 @@
<version>1.8.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>3.0.0</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
4 changes: 4 additions & 0 deletions src/main/java/codes/wasabi/xclaim/XClaim.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.minimessage.MiniMessage;
import org.apache.commons.io.FileUtils;
import org.bstats.bukkit.Metrics;
import org.bukkit.Bukkit;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.configuration.file.FileConfiguration;
Expand Down Expand Up @@ -216,6 +217,9 @@ private void loadClaims() {
}

private void startServices() {
// bStats
Metrics metrics = new Metrics(this, 16129);
//
logger.log(Level.INFO, lang.get("services-chunk-editor"));
ChunkEditor.initialize();
logger.log(Level.INFO, lang.get("services-command"));
Expand Down

0 comments on commit a9717c8

Please sign in to comment.