disable library loader and shade in dependencies (stupid paper remapper)

This commit is contained in:
Pyrbu 2024-05-17 04:56:15 +02:00
parent 644b6a4e5f
commit 97732331f9
2 changed files with 12 additions and 11 deletions

@ -6,9 +6,9 @@ plugins {
runServer { runServer {
javaLauncher = javaToolchains.launcherFor { javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(17) languageVersion = JavaLanguageVersion.of(21)
} }
minecraftVersion "1.20.4" minecraftVersion "1.20.6"
} }
processResources { processResources {
@ -17,16 +17,16 @@ processResources {
dependencies { dependencies {
compileOnly "me.clip:placeholderapi:2.11.5" // Placeholder support compileOnly "me.clip:placeholderapi:2.11.5" // Placeholder support
compileOnly "com.google.code.gson:gson:2.10.1" // JSON parsing implementation "com.google.code.gson:gson:2.10.1" // JSON parsing
compileOnly "org.bstats:bstats-bukkit:3.0.2" // Plugin stats implementation "org.bstats:bstats-bukkit:3.0.2" // Plugin stats
compileOnly "me.robertlit:SpigotResourcesAPI:2.0" // Spigot API wrapper for update checker implementation "me.robertlit:SpigotResourcesAPI:2.0" // Spigot API wrapper for update checker
compileOnly "com.github.retrooper.packetevents:spigot:2.3.0" // Packets implementation "com.github.retrooper.packetevents:spigot:2.3.0" // Packets
compileOnly "space.arim.dazzleconf:dazzleconf-ext-snakeyaml:1.2.1" // Configs implementation "space.arim.dazzleconf:dazzleconf-ext-snakeyaml:1.2.1" // Configs
compileOnly "lol.pyr:director-adventure:2.1.1" // Commands implementation "lol.pyr:director-adventure:2.1.1" // Commands
// Fancy text library // Fancy text library
compileOnly "net.kyori:adventure-platform-bukkit:4.3.2" implementation "net.kyori:adventure-platform-bukkit:4.3.2"
compileOnly "net.kyori:adventure-text-minimessage:4.15.0" implementation "net.kyori:adventure-text-minimessage:4.15.0"
implementation "me.lucko:jar-relocator:1.7" implementation "me.lucko:jar-relocator:1.7"
implementation project(":api") implementation project(":api")

@ -2,7 +2,6 @@ package lol.pyr.znpcsplus;
import lol.pyr.director.adventure.command.CommandContext; import lol.pyr.director.adventure.command.CommandContext;
import lol.pyr.director.common.message.Message; import lol.pyr.director.common.message.Message;
import lol.pyr.znpcsplus.libraries.LibraryLoader;
import lol.pyr.znpcsplus.util.FileUtil; import lol.pyr.znpcsplus.util.FileUtil;
import net.kyori.adventure.text.Component; import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.minimessage.MiniMessage; import net.kyori.adventure.text.minimessage.MiniMessage;
@ -32,6 +31,7 @@ public class ZNpcsPlusBootstrap extends JavaPlugin {
Bukkit.getPluginManager().disablePlugin(this); Bukkit.getPluginManager().disablePlugin(this);
return; return;
} }
/*
getLogger().info("Downloading and loading libraries, this might take a while if this is the first time you're launching the plugin"); getLogger().info("Downloading and loading libraries, this might take a while if this is the first time you're launching the plugin");
LibraryLoader loader = new LibraryLoader(this, new File(getDataFolder(), "libraries")); LibraryLoader loader = new LibraryLoader(this, new File(getDataFolder(), "libraries"));
@ -81,6 +81,7 @@ public class ZNpcsPlusBootstrap extends JavaPlugin {
loader.deleteUnloadedLibraries(); loader.deleteUnloadedLibraries();
getLogger().info("Loaded " + loader.loadedLibraryCount() + " libraries!"); getLogger().info("Loaded " + loader.loadedLibraryCount() + " libraries!");
*/
zNpcsPlus = new ZNpcsPlus(this); zNpcsPlus = new ZNpcsPlus(this);
} }