mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2025-03-07 13:48:00 +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);
|
Platform platform = worldEdit.getPlatformManager().queryCapability(Capability.WORLD_EDITING);
|
||||||
if (platform instanceof BukkitServerInterface) {
|
if (platform instanceof BukkitServerInterface) {
|
||||||
LOGGER.warn(e.getMessage());
|
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 {
|
} else {
|
||||||
LOGGER.info("WorldEdit could not find a Bukkit adapter for this MC version, "
|
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() + ") "
|
+ "but it seems that you have another implementation of WorldEdit installed (" + platform.getPlatformName() + ") "
|
||||||
|
Loading…
Reference in New Issue
Block a user