Skip to content

Commit bc380ca

Browse files
committed
bStats Metrics
1 parent 2582125 commit bc380ca

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

pom.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@
2424
<artifactId>maven-compiler-plugin</artifactId>
2525
<version>3.8.1</version>
2626
<configuration>
27-
<relocations>
28-
<relocation>
29-
<pattern>org.bstats</pattern>
30-
<!-- Replace this with your package! -->
31-
<shadedPattern>tk.fungy.wsformc.Main</shadedPattern>
32-
</relocation>
33-
</relocations>
3427
<source>${java.version}</source>
3528
<target>${java.version}</target>
3629
</configuration>
@@ -46,6 +39,13 @@
4639
<goal>shade</goal>
4740
</goals>
4841
<configuration>
42+
<relocations>
43+
<relocation>
44+
<pattern>org.bstats</pattern>
45+
<!-- Replace this with your package! -->
46+
<shadedPattern>tk.fungy.wsformc</shadedPattern>
47+
</relocation>
48+
</relocations>
4949
<createDependencyReducedPom>false</createDependencyReducedPom>
5050
</configuration>
5151
</execution>

src/main/java/tk/fungy/wsformc/Main.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package tk.fungy.wsformc;
22

3+
import org.bstats.bukkit.Metrics;
34
import org.bukkit.plugin.java.JavaPlugin;
45

56
import java.net.UnknownHostException;
@@ -33,6 +34,9 @@ public void onEnable() {
3334
Command.ws.start();
3435
}
3536
Updater.startUpdater();
37+
38+
int pluginId = 17696;
39+
Metrics metrics = new Metrics(Main.instance, pluginId);
3640
}
3741

3842
@Override

0 commit comments

Comments
 (0)