diff --git a/pom.xml b/pom.xml index 953bc7a..802d6d5 100644 --- a/pom.xml +++ b/pom.xml @@ -45,6 +45,11 @@ io.github.thatsmusic99 configurationmaster + + org.bstats + + bstats + @@ -98,5 +103,11 @@ v1.0-RC-2 compile + + org.bstats + bstats-bukkit + 2.2.1 + compile + diff --git a/src/main/java/eu/endermite/togglepvp/TogglePvp.java b/src/main/java/eu/endermite/togglepvp/TogglePvp.java index 3ab2515..dc6fd25 100644 --- a/src/main/java/eu/endermite/togglepvp/TogglePvp.java +++ b/src/main/java/eu/endermite/togglepvp/TogglePvp.java @@ -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; @@ -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() {