From ab8e59004c7b8f4b406d1e1a593e9f0ca6358780 Mon Sep 17 00:00:00 2001 From: david Date: Sat, 15 Jun 2024 23:50:12 +0200 Subject: [PATCH] removed serverlib dependency --- build.gradle.kts | 4 ---- src/main/java/net/thenextlvl/gopaint/GoPaintPlugin.java | 4 ---- 2 files changed, 8 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index a9e5f2d0..d0319d31 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -27,9 +27,6 @@ dependencies { // Fawe / WorldEdit implementation(platform("com.intellectualsites.bom:bom-newest:1.27")) compileOnlyApi("com.fastasyncworldedit:FastAsyncWorldEdit-Bukkit") - // Utils - implementation("dev.notmyfault.serverlib:ServerLib") - implementation("io.papermc:paperlib") // Stats implementation("org.bstats:bstats-bukkit:3.0.2") // Internationalization @@ -82,7 +79,6 @@ tasks.shadowJar { dependencies { relocate("org.incendo.serverlib", "${rootProject.group}.serverlib") relocate("org.bstats", "${rootProject.group}.metrics") - relocate("io.papermc.lib", "${rootProject.group}.paperlib") } } diff --git a/src/main/java/net/thenextlvl/gopaint/GoPaintPlugin.java b/src/main/java/net/thenextlvl/gopaint/GoPaintPlugin.java index 59bb5999..ee4f3b6d 100644 --- a/src/main/java/net/thenextlvl/gopaint/GoPaintPlugin.java +++ b/src/main/java/net/thenextlvl/gopaint/GoPaintPlugin.java @@ -43,7 +43,6 @@ import org.incendo.cloud.bukkit.CloudBukkitCapabilities; import org.incendo.cloud.execution.ExecutionCoordinator; import org.incendo.cloud.paper.LegacyPaperCommandManager; -import org.incendo.serverlib.ServerLib; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -84,9 +83,6 @@ public void onLoad() { @Override public void onEnable() { - // Check if we are in a safe environment - ServerLib.checkUnsafeForks(); - // disable if goPaint and BetterGoPaint are installed simultaneously if (hasOriginalGoPaint()) { getComponentLogger().error("BetterGoPaint is a replacement for goPaint. Please use one instead of both");