From aec28542540a7ccafb0e2e9dc58a4bcd18904803 Mon Sep 17 00:00:00 2001 From: bridge Date: Tue, 26 Nov 2024 16:13:50 +0100 Subject: [PATCH] refactor: do not shade packetevents --- plugin/build.gradle | 4 +--- plugin/src/main/resources/plugin.yml | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/plugin/build.gradle b/plugin/build.gradle index fe8237b..eb428a9 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -25,10 +25,10 @@ publishing { dependencies { compileOnly "me.clip:placeholderapi:2.11.6" // Placeholder support + compileOnly "com.github.retrooper:packetevents-spigot:2.6.0" // Packets implementation "com.google.code.gson:gson:2.10.1" // JSON parsing implementation "org.bstats:bstats-bukkit:3.0.2" // Plugin stats implementation "me.robertlit:SpigotResourcesAPI:2.0" // Spigot API wrapper for update checker - implementation "com.github.retrooper:packetevents-spigot:2.3.1-SNAPSHOT" // Packets implementation "space.arim.dazzleconf:dazzleconf-ext-snakeyaml:1.2.1" // Configs implementation "lol.pyr:director-adventure:2.1.2" // Commands @@ -52,8 +52,6 @@ shadowJar { relocate "net.kyori", "lol.pyr.znpcsplus.libraries.kyori" relocate "org.checkerframework", "lol.pyr.znpcsplus.libraries.checkerframework" relocate "com.google", "lol.pyr.znpcsplus.libraries.google" - relocate "com.github.retrooper.packetevents", "lol.pyr.znpcsplus.libraries.packetevents.api" - relocate "io.github.retrooper.packetevents", "lol.pyr.znpcsplus.libraries.packetevents.impl" relocate "org.yaml.snakeyaml", "lol.pyr.znpcsplus.libraries.snakeyaml" relocate "space.arim.dazzleconf", "lol.pyr.znpcsplus.libraries.dazzleconf" relocate "lol.pyr.director", "lol.pyr.znpcsplus.libraries.command" diff --git a/plugin/src/main/resources/plugin.yml b/plugin/src/main/resources/plugin.yml index 44dc2d4..91f6ca7 100644 --- a/plugin/src/main/resources/plugin.yml +++ b/plugin/src/main/resources/plugin.yml @@ -11,6 +11,9 @@ api-version: 1.13 folia-supported: true +depend: + - packetevents + softdepend: - PlaceholderAPI - ServersNPC