Skip to content

Commit

Permalink
BStats Integration
Browse files Browse the repository at this point in the history
  • Loading branch information
ShakeforProtein committed Dec 30, 2019
1 parent d96261d commit d5f4609
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 5 deletions.
35 changes: 34 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.ShakeforProtein</groupId>
<artifactId>LazyTools</artifactId>
<version>1.0.5-global</version>
<version>1.0.6-global</version>
<packaging>jar</packaging>

<name>LazyTools</name>
Expand Down Expand Up @@ -44,6 +44,29 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.0</version>
<!-- Do not include the <configuration>...</configuration> part if you are using Sponge! -->
<configuration>
<relocations>
<relocation>
<pattern>org.bstats</pattern>
<!-- Replace this with your package! -->
<shadedPattern>me.shakeforprotein.lazytools</shadedPattern>
</relocation>
</relocations>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
Expand All @@ -62,6 +85,10 @@
<id>sonatype</id>
<url>https://oss.sonatype.org/content/groups/public/</url>
</repository>
<repository>
<id>CodeMC</id>
<url>https://repo.codemc.org/repository/maven-public</url>
</repository>
</repositories>

<dependencies>
Expand All @@ -71,5 +98,11 @@
<version>1.14.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>1.5</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
10 changes: 6 additions & 4 deletions src/main/java/me/shakeforprotein/lazytools/LazyTools.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package me.shakeforprotein.lazytools;

import Commands.ReloadCommand;
import org.bstats.bukkit.Metrics;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.block.Block;
Expand Down Expand Up @@ -35,10 +36,11 @@ public void onEnable() {
this.getConfig().set("version", this.getDescription().getVersion());
this.saveConfig();
this.getCommand("LazyToolsReload").setExecutor(new ReloadCommand(this));
//this.getCommand("renamecaveblock").setExecutor(new RenameCaveblock(this));
//stareHash.clear();
//counterHash.clear();
//activateStareCheck();
if(getConfig().get("bstatsIntegration") != null) {
if (getConfig().getBoolean("bstatsIntegration")) {
Metrics metrics = new Metrics(this);
}
}
}

@Override
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
bstatsIntegration: true

value:
BEDROCK:
buy: 2000000
Expand Down

0 comments on commit d5f4609

Please sign in to comment.