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
This commit is contained in:
Maddy Miller 2024-03-30 14:11:53 +10:00 committed by GitHub
parent 1b51dfb406
commit 89d3f09e70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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() + ") "