Skip to content

Commit

Permalink
autoupdater
Browse files Browse the repository at this point in the history
  • Loading branch information
char3210 committed Dec 6, 2023
1 parent f17361d commit b99cc74
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@
<pattern>net.roxeez.advancement</pattern>
<shadedPattern>me.char321.sfadvancements.libs.advancementapi</shadedPattern>
</relocation>
<relocation>
<pattern>io.github.bakedlibs.dough</pattern>
<shadedPattern>me.char321.sfadvancements.libs.dough</shadedPattern>
</relocation>
</relocations>
<filters>
<filter>
Expand Down Expand Up @@ -187,5 +191,12 @@
<version>1.24.1</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.github.baked-libs.dough</groupId>
<artifactId>dough-api</artifactId>
<version>a6519e666c</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
4 changes: 2 additions & 2 deletions src/main/java/me/char321/sfadvancements/SFAdvancements.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package me.char321.sfadvancements;

import io.github.bakedlibs.dough.updater.BlobBuildUpdater;
import io.github.thebusybiscuit.slimefun4.api.SlimefunAddon;
import io.github.thebusybiscuit.slimefun4.libraries.dough.config.Config;
import io.github.thebusybiscuit.slimefun4.libraries.dough.updater.GitHubBuildsUpdater;
import me.char321.sfadvancements.api.AdvancementBuilder;
import me.char321.sfadvancements.api.AdvancementGroup;
import me.char321.sfadvancements.api.criteria.CriteriaTypes;
Expand Down Expand Up @@ -111,7 +111,7 @@ public void onDisable() {
private void autoUpdate() {
if (config.getBoolean("auto-update") && !getDescription().getVersion().contains("MODIFIED")) {
info("Checking for updates...");
GitHubBuildsUpdater updater = new GitHubBuildsUpdater(this, this.getFile(), "qwertyuioplkjhgfd/SlimefunAdvancements/main");
BlobBuildUpdater updater = new BlobBuildUpdater(this, this.getFile(), "SlimefunAdvancements");
updater.start();
}
}
Expand Down

0 comments on commit b99cc74

Please sign in to comment.