Skip to content

Commit

Permalink
Load ConfigUpdater library during start process
Browse files Browse the repository at this point in the history
  • Loading branch information
frafol authored Jun 17, 2024
1 parent c43fd27 commit 0215740
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/main/java/it/frafol/cleanping/bukkit/CleanPing.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import lombok.SneakyThrows;
import net.byteflux.libby.BukkitLibraryManager;
import net.byteflux.libby.Library;
import net.byteflux.libby.relocation.Relocation;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabExecutor;
Expand Down Expand Up @@ -54,12 +55,23 @@ public void onEnable() {
BukkitLibraryManager bukkitLibraryManager = new BukkitLibraryManager(this);

Library yaml;
Relocation yamlrelocation = new Relocation("yaml", "it{}frafol{}libs{}yaml");
yaml = Library.builder()
.groupId("me{}carleslc{}Simple-YAML")
.artifactId("Simple-Yaml")
.relocate(yamlrelocation)
.version("1.8.4")
.build();

Relocation updaterrelocation = new Relocation("updater", "it{}frafol{}libs{}updater");
Library updater = Library.builder()
.groupId("com{}tchristofferson")
.artifactId("ConfigUpdater")
.version("2.1-SNAPSHOT")
.relocate(updaterrelocation)
.url("https://github.com/frafol/Config-Updater/releases/download/compile/ConfigUpdater-2.1-SNAPSHOT.jar")
.build();

bukkitLibraryManager.addJitPack();

try {
Expand All @@ -69,12 +81,14 @@ public void onEnable() {
yaml = Library.builder()
.groupId("me{}carleslc{}Simple-YAML")
.artifactId("Simple-Yaml")
.relocate(yamlrelocation)
.version("1.8.4")
.url("https://github.com/Carleslc/Simple-YAML/releases/download/1.8.4/Simple-Yaml-1.8.4.jar")
.build();
}

bukkitLibraryManager.loadLibrary(yaml);
bukkitLibraryManager.loadLibrary(updater);

getLogger().info("\n ___ _ ___ _ \n" +
" / __| |___ __ _ _ _ | _ (_)_ _ __ _ \n" +
Expand Down

0 comments on commit 0215740

Please sign in to comment.