mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-15 04:41:37 +08:00
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:
parent
1b51dfb406
commit
89d3f09e70
@ -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() + ") "
|
||||
|
Loading…
Reference in New Issue
Block a user