Skip to content

Commit

Permalink
Update to 1.21.1
Browse files Browse the repository at this point in the history
  • Loading branch information
JNNGL committed Oct 4, 2024
1 parent 2b68161 commit 5eebe7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
6 changes: 2 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,20 @@ repositories {
}

dependencies {
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.21-R0.1-SNAPSHOT")
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.21.1-R0.1-SNAPSHOT")
implementation("net.elytrium:serializer:1.1.1")
implementation("com.jnngl:mapcolor:1.0.1")
compileOnly("io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT")
compileOnly("io.papermc.paper:paper-api:1.21.1-R0.1-SNAPSHOT")
annotationProcessor("org.projectlombok:lombok:1.18.30")
compileOnly("org.projectlombok:lombok:1.18.30")
implementation("com.j256.ormlite:ormlite-jdbc:6.1")
implementation("org.xerial:sqlite-jdbc:3.45.0.0")
implementation("org.bstats:bstats-bukkit:3.0.2")
}

tasks {
shadowJar {
archiveClassifier.set("")
relocate("net.elytrium.serializer", "com.jnngl.vanillaminimaps.serializer")
relocate("org.bstats", "com.jnngl.vanillaminimaps.metrics")
exclude("org/slf4j/**")
minimize()
}
Expand Down
8 changes: 0 additions & 8 deletions src/main/java/com/jnngl/vanillaminimaps/VanillaMinimaps.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
import com.jnngl.vanillaminimaps.storage.MinimapPlayerDatabase;
import lombok.Getter;
import lombok.SneakyThrows;
import org.bstats.bukkit.Metrics;
import org.bstats.charts.SimplePie;
import org.bukkit.Bukkit;
import org.bukkit.craftbukkit.entity.CraftPlayer;
import org.bukkit.entity.Player;
Expand All @@ -58,7 +56,6 @@
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.atomic.AtomicReference;

Expand Down Expand Up @@ -110,11 +107,6 @@ public void onEnable() {
Config.instance().reload(dataPath.resolve("config.yml"));
BlockConfig.instance().reload(dataPath.resolve("blocks.yml"));

Metrics metrics = new Metrics(this, 20833);
metrics.addCustomChart(new SimplePie("minimap_renderer", () -> Config.instance().defaultMinimapRenderer));
metrics.addCustomChart(new SimplePie("default_position", () -> Config.instance().defaultPosition.toString().toLowerCase(Locale.ROOT)));
metrics.addCustomChart(new SimplePie("enabled_by_default", () -> String.valueOf(Config.instance().enabledByDefault)));

Path iconsPath = dataPath.resolve("icons");
Files.createDirectories(iconsPath);

Expand Down

0 comments on commit 5eebe7e

Please sign in to comment.