Skip to content

Commit

Permalink
Alter the CraftBukkit detection system
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Mar 14, 2024
1 parent 00848a3 commit a430218
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,9 @@ private void loadAdapter() {
Platform platform = worldEdit.getPlatformManager().queryCapability(Capability.WORLD_EDITING);
if (platform instanceof BukkitServerInterface) {
LOGGER.warn(e.getMessage());
if (PaperLib.getEnvironment().getName().equals("CraftBukkit") && !PaperLib.isSpigot()) {
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 {
Expand Down

0 comments on commit a430218

Please sign in to comment.