Skip to content

Commit e1a17bc

Browse files
committed
Added bstats
1 parent 56b1acf commit e1a17bc

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

pom.xml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@
5353
<version>3.2.1</version>
5454
<scope>provided</scope>
5555
</dependency>
56+
<dependency>
57+
<groupId>org.bstats</groupId>
58+
<artifactId>bstats-bukkit</artifactId>
59+
<version>3.0.2</version>
60+
<scope>compile</scope>
61+
</dependency>
5662
</dependencies>
5763

5864
<properties>
@@ -68,6 +74,29 @@
6874
<filtering>true</filtering>
6975
</resource>
7076
</resources>
77+
<plugins>
78+
<plugin>
79+
<groupId>org.apache.maven.plugins</groupId>
80+
<artifactId>maven-shade-plugin</artifactId>
81+
<version>3.5.1</version>
82+
<configuration>
83+
<relocations>
84+
<relocation>
85+
<pattern>org.bstats</pattern>
86+
<!-- Replace this with your package! -->
87+
<shadedPattern>me.mrmango404</shadedPattern>
88+
</relocation>
89+
</relocations>
90+
</configuration>
91+
<executions>
92+
<execution>
93+
<phase>package</phase>
94+
<goals>
95+
<goal>shade</goal>
96+
</goals>
97+
</execution>
98+
</executions>
99+
</plugin>
100+
</plugins>
71101
</build>
72-
73102
</project>

src/main/java/me/mrmango404/Main.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import me.mrmango404.hooks.BSkyblockFlag;
88
import me.mrmango404.util.ClearShulker;
99
import me.mrmango404.util.DebugManager;
10+
import org.bstats.bukkit.Metrics;
1011
import org.bukkit.Bukkit;
1112
import org.bukkit.Location;
1213
import org.bukkit.Material;
@@ -54,7 +55,7 @@ public void onEnable() {
5455
scoreboard = Bukkit.getScoreboardManager().getNewScoreboard();
5556
safariPlug = Bukkit.getPluginManager().getPlugin("SafariNet");
5657
bentoBoxPlug = Bukkit.getPluginManager().getPlugin("BentoBox");
57-
58+
5859
if (bentoBoxPlug != null) {
5960
flag = new Flag.Builder(BSkyblockFlag.CONTAINER_VIEW_PROTECTION.getFlagName(), Material.YELLOW_SHULKER_BOX)
6061
.type(Flag.Type.PROTECTION)
@@ -77,6 +78,8 @@ public void onEnable() {
7778
} else {
7879
DebugManager.log("SafariNet hook could not be found.");
7980
}
81+
82+
new Metrics(this, 26011);
8083
}
8184

8285
@Override

0 commit comments

Comments
 (0)