File tree Expand file tree Collapse file tree
src/main/java/net/bitbylogic/structures Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5858 <pattern >net.bitbylogic.utils</pattern >
5959 <shadedPattern >net.bitbylogic.structures.lib.bitsutils</shadedPattern >
6060 </relocation >
61+ <relocation >
62+ <pattern >org.bstats</pattern >
63+ <shadedPattern >net.bitbylogic.structures.metrics</shadedPattern >
64+ </relocation >
6165 </relocations >
6266 </configuration >
6367 </plugin >
105109 <scope >provided</scope >
106110 </dependency >
107111
112+ <!-- BStats -->
113+ <dependency >
114+ <groupId >org.bstats</groupId >
115+ <artifactId >bstats-bukkit</artifactId >
116+ <version >3.1.0</version >
117+ <scope >compile</scope >
118+ </dependency >
119+
108120 <!-- Lombok -->
109121 <dependency >
110122 <groupId >org.projectlombok</groupId >
Original file line number Diff line number Diff line change 1111import net .bitbylogic .structures .placeholder .StructurePlaceholderExpansion ;
1212import net .bitbylogic .utils .message .config .MessageProvider ;
1313import net .bitbylogic .utils .message .format .Formatter ;
14+ import org .bstats .bukkit .Metrics ;
1415import org .bukkit .configuration .file .YamlConfiguration ;
1516import org .bukkit .plugin .PluginManager ;
1617import org .bukkit .plugin .java .JavaPlugin ;
2223@ Getter
2324public final class Structures extends JavaPlugin {
2425
26+ private static final int METRICS_ID = 28974 ;
27+
2528 private final File structureFile = new File (getDataFolder (), "structures.yml" );
2629
2730 private YamlConfiguration structureConfig ;
@@ -36,6 +39,8 @@ public final class Structures extends JavaPlugin {
3639 public void onEnable () {
3740 saveDefaultConfig ();
3841
42+ new Metrics (this , METRICS_ID );
43+
3944 Formatter .registerConfig (new File (getDataFolder (), "config.yml" ));
4045
4146 if (!structureFile .exists ()) {
You can’t perform that action at this time.
0 commit comments