Skip to content

Commit

Permalink
v1.0.2 - bStats
Browse files Browse the repository at this point in the history
Added:
+ bStats
  • Loading branch information
Brannstroom committed Jan 3, 2022
1 parent 21bf7b2 commit bafbea3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
22 changes: 19 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.brannstroom</groupId>
<artifactId>ExpBottle</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<packaging>jar</packaging>

<name>ExpBottle</name>
Expand All @@ -23,14 +23,22 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<configuration>
<relocations>
<relocation>
<pattern>org.bstats</pattern>
<shadedPattern>me.brannstroom.expbottle</shadedPattern>
</relocation>
</relocations>
</configuration>
<executions>
<execution>
<phase>package</phase>
Expand Down Expand Up @@ -70,5 +78,13 @@
<version>1.18.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>

<!-- bStats -->
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>2.2.1</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
4 changes: 4 additions & 0 deletions src/main/java/me/brannstroom/expbottle/ExpBottle.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import me.brannstroom.expbottle.command.ExpBottleCommand;
import me.brannstroom.expbottle.handlers.InfoKeeper;
import me.brannstroom.expbottle.listeners.ExpBottleListener;
import org.bstats.bukkit.Metrics;
import org.bukkit.Bukkit;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandMap;
Expand All @@ -30,6 +31,9 @@ public void onEnable() {
saveDefaultConfig();

InfoKeeper.updateConfig();

int pluginId = 13813;
Metrics metrics = new Metrics(this, pluginId);
}

public void onDisable() {
Expand Down

0 comments on commit bafbea3

Please sign in to comment.