|
6 | 6 | import java.nio.file.Path; |
7 | 7 | import java.nio.file.Paths; |
8 | 8 | import java.util.Objects; |
| 9 | + |
| 10 | +import io.github.thebusybiscuit.slimefun4.libraries.dough.updater.BlobBuildUpdater; |
9 | 11 | import net.byteflux.libby.BukkitLibraryManager; |
10 | 12 | import net.byteflux.libby.Library; |
11 | 13 | import org.bukkit.plugin.java.JavaPlugin; |
|
15 | 17 | import org.lins.mmmjjkx.rykenslimefuncustomizer.listeners.SingleItemRecipeGuideListener; |
16 | 18 | import org.lins.mmmjjkx.rykenslimefuncustomizer.utils.CommonUtils; |
17 | 19 | import org.lins.mmmjjkx.rykenslimefuncustomizer.utils.ExceptionHandler; |
| 20 | +import org.lins.mmmjjkx.rykenslimefuncustomizer.utils.Metrics; |
18 | 21 |
|
19 | 22 | public final class RykenSlimefunCustomizer extends JavaPlugin implements SlimefunAddon { |
20 | 23 | private static boolean runtime = false; |
@@ -49,14 +52,14 @@ public void onEnable() { |
49 | 52 |
|
50 | 53 | ExceptionHandler.info("RykenSlimeCustomizer loaded successfully!"); |
51 | 54 |
|
52 | | - /* |
53 | 55 | if (getConfig().getBoolean("pluginUpdate") |
54 | | - && getDescription().getVersion().startsWith("b") |
55 | | - && getServer().getPluginManager().isPluginEnabled("GuizhanLibPlugin")) { |
56 | | - GuizhanUpdater.start(this, getFile(), "SlimefunReloadingProject", "RykenSlimeCustomizer", "main"); |
| 56 | + && getDescription().getVersion().startsWith("Dev") |
| 57 | + ) { |
| 58 | + BlobBuildUpdater updater = new BlobBuildUpdater(this, getFile(), "RykenSlimeCustomizer"); |
| 59 | + updater.start(); |
57 | 60 | } |
58 | 61 |
|
59 | | - */ |
| 62 | + new Metrics(this, 25095); |
60 | 63 |
|
61 | 64 | getServer().getScheduler().runTaskLater(this, () -> runtime = true, 1); |
62 | 65 | } |
@@ -204,7 +207,6 @@ private void setupLibraries() { |
204 | 207 | libraryManager.loadLibrary(truffleEnterprise); |
205 | 208 | libraryManager.loadLibrary(truffleRuntime); |
206 | 209 |
|
207 | | - libraryManager.loadLibrary(icu4j); |
208 | 210 | libraryManager.loadLibrary(httpCore); |
209 | 211 | libraryManager.loadLibrary(httpCore_h2); |
210 | 212 | libraryManager.loadLibrary(httpClient); |
|
0 commit comments