From 89d3f09e703c942f8714d9429b153ab5f72aebdc Mon Sep 17 00:00:00 2001 From: Maddy Miller Date: Sat, 30 Mar 2024 14:11:53 +1000 Subject: [PATCH] Add a warning about using CraftBukkit due to it not working (#2487) * Add a warning about using CraftBukkit due to it not working * Alter the CraftBukkit detection system --- .../java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java index b338b2498..a4167c0bb 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java @@ -297,6 +297,11 @@ private void loadAdapter() { Platform platform = worldEdit.getPlatformManager().queryCapability(Capability.WORLD_EDITING); if (platform instanceof BukkitServerInterface) { LOGGER.warn(e.getMessage()); + try { + Class.forName("org.spigotmc.SpigotConfig"); + } catch (ClassNotFoundException e1) { + LOGGER.warn("CraftBukkit is not a supported Bukkit platform. Please use a supported platform, such as Paper."); + } } else { LOGGER.info("WorldEdit could not find a Bukkit adapter for this MC version, " + "but it seems that you have another implementation of WorldEdit installed (" + platform.getPlatformName() + ") "