Skip to content

Commit

Permalink
Add bStats statistic provider, release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TeksuSiK committed Jan 23, 2023
1 parent 2fbbf47 commit 61a5afe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "pl.teksusik"
version = "1.0"
version = "1.1.0"

apply(plugin = "java")
apply(plugin = "java-library")
Expand All @@ -26,6 +26,8 @@ dependencies {
implementation("eu.okaeri:okaeri-configs-yaml-bukkit:$okaeriConfigs")
implementation("eu.okaeri:okaeri-configs-serdes-bukkit:$okaeriConfigs")
implementation("eu.okaeri:okaeri-configs-validator-okaeri:$okaeriConfigs")

implementation("org.bstats:bstats-bukkit:3.0.0")
}

tasks.processResources {
Expand All @@ -36,6 +38,7 @@ tasks.processResources {

tasks.named<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>("shadowJar") {
relocate("eu.okaeri", "pl.teksusik.experiencetome.libraries.eu.okaeri")
relocate("org.bstats", "pl.teksusik.experiencetome.libraries.org.bstats")
}

publishing {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import eu.okaeri.configs.validator.okaeri.OkaeriValidator;
import eu.okaeri.configs.yaml.bukkit.YamlBukkitConfigurer;
import eu.okaeri.configs.yaml.bukkit.serdes.SerdesBukkit;
import org.bstats.bukkit.Metrics;
import org.bukkit.NamespacedKey;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;
Expand Down Expand Up @@ -34,6 +35,8 @@ public void onEnable() {

ExperienceTomeRecipe recipe = new ExperienceTomeRecipe(this.key, this.configuration.getTomeMaterial(), this.configuration.getDisplayName(), this.configuration.getLore(), this.configuration.getMaximumExperience(), this.configuration.getCrafting());
this.getServer().addRecipe(recipe.toShapedRecipe());

Metrics metrics = new Metrics(this, 17509);
}

@Override
Expand Down

0 comments on commit 61a5afe

Please sign in to comment.