Skip to content

Commit

Permalink
added bstats
Browse files Browse the repository at this point in the history
  • Loading branch information
YouHaveTrouble committed Mar 8, 2021
1 parent acc2cf3 commit f315363
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
<pattern>io.github.thatsmusic99</pattern>
<shadedPattern>configurationmaster</shadedPattern>
</relocation>
<relocation>
<pattern>org.bstats</pattern>
<!-- Replace this with your package! -->
<shadedPattern>bstats</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
Expand Down Expand Up @@ -98,5 +103,11 @@
<version>v1.0-RC-2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>2.2.1</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
5 changes: 5 additions & 0 deletions src/main/java/eu/endermite/togglepvp/TogglePvp.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import eu.endermite.togglepvp.util.Listener;
import eu.endermite.togglepvp.util.DatabaseSQLite;
import lombok.Getter;
import org.bstats.bukkit.Metrics;
import org.bstats.charts.CustomChart;
import org.bukkit.command.CommandSender;
import org.bukkit.plugin.java.JavaPlugin;
import org.reflections.Reflections;
Expand Down Expand Up @@ -57,6 +59,9 @@ public void onEnable() {
// Register command
Objects.requireNonNull(getCommand("pvp")).setExecutor(new MainCommand());
Objects.requireNonNull(getCommand("pvp")).setTabCompleter(new MainCommand());

Metrics metrics = new Metrics(this, 10597);

}

public void reloadPluginConfig() {
Expand Down

0 comments on commit f315363

Please sign in to comment.