Update ServerLib

This commit is contained in:
NotMyFault
2021-04-27 11:58:49 +02:00
parent 9503b0bfc4
commit 361b936aa0
3 changed files with 6 additions and 8 deletions

View File

@ -28,9 +28,6 @@ repositories {
maven {
name = "IntellectualSites 3rd Party"
url = uri("https://mvn.intellectualsites.com/content/repositories/thirdparty")
content {
includeGroup("de.notmyfault")
}
}
}
@ -64,7 +61,7 @@ dependencies {
// Other libraries
implementation("com.sk89q:squirrelid:1.0.0-SNAPSHOT") { isTransitive = false }
implementation("de.notmyfault:serverlib:1.0.1")
implementation("org.incendo.serverlib:ServerLib:2.1.0")
// Our libraries
implementation("com.intellectualsites.arkitektonika:Arkitektonika-Client:2.0-SNAPSHOT")
@ -101,7 +98,7 @@ tasks.named<ShadowJar>("shadowJar") {
relocate("com.intellectualsites.arkitektonika", "com.plotsquared.core.arkitektonika")
relocate("com.intellectualsites.http", "com.plotsquared.core.http")
relocate("com.intellectualsites.paster", "com.plotsquared.core.paster")
relocate("de.notmyfault:serverlib", "com.plotsquared.bukkit.serverlib")
relocate("org.incendo.serverlib", "com.plotsquared.bukkit.serverlib")
// Get rid of all the libs which are 100% unused.
minimize()

View File

@ -117,7 +117,6 @@ import com.plotsquared.core.uuid.CacheUUIDService;
import com.plotsquared.core.uuid.UUIDPipeline;
import com.plotsquared.core.uuid.offline.OfflineModeUUIDService;
import com.sk89q.worldedit.WorldEdit;
import de.notmyfault.serverlib.ServerLib;
import io.papermc.lib.PaperLib;
import net.kyori.adventure.audience.Audience;
import net.kyori.adventure.text.Component;
@ -141,6 +140,7 @@ import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.java.JavaPlugin;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.incendo.serverlib.ServerLib;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -546,6 +546,7 @@ public final class BukkitPlatform extends JavaPlugin implements Listener, PlotPl
checkJvm();
// Check if we are in a safe environment
ServerLib.checkUnsafeForks();
ServerLib.checkJavaLTS();
}
private void unload() {