Skip to content

Commit

Permalink
Add a warning about using CraftBukkit due to it not working (#2487)
Browse files Browse the repository at this point in the history
* Add a warning about using CraftBukkit due to it not working

* Alter the CraftBukkit detection system
  • Loading branch information
me4502 committed Mar 30, 2024
1 parent 1b51dfb commit 89d3f09
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -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() + ") "
Expand Down

0 comments on commit 89d3f09

Please sign in to comment.