From 05d5ad161a00deb8d42fcd1776b95e0de06f30e4 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Fri, 23 Jun 2023 21:57:51 +0100 Subject: [PATCH] chore: add obnoxious error message if using p2 v7 with FAWE main branch --- .../java/com/fastasyncworldedit/bukkit/FaweBukkit.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/FaweBukkit.java b/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/FaweBukkit.java index e4f66dea3..34ed78be2 100644 --- a/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/FaweBukkit.java +++ b/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/FaweBukkit.java @@ -320,6 +320,15 @@ public class FaweBukkit implements IFawe, Listener { if (PlotSquared.get().getVersion().version[0] == 6) { WEManager.weManager().addManager(new com.fastasyncworldedit.bukkit.regions.plotsquared.PlotSquaredFeature()); LOGGER.info("Plugin 'PlotSquared' v6 found. Using it now."); + } else if (PlotSquared.get().getVersion().version[0] == 7) { + WEManager.weManager().addManager(new com.fastasyncworldedit.bukkit.regions.plotsquared.PlotSquaredFeature()); + LOGGER.error("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); + LOGGER.error("!! !!"); + LOGGER.error("!! ERROR: PlotSquared v7 found. This FAWE version does not support PlotSquared V7 !!"); + LOGGER.error("!! Follow the instructions when notified of v7 release candidates the and use FAWE from !!"); + LOGGER.error("!! https://ci.athion.net/job/FastAsyncWorldEdit-Pull-Requests/view/change-requests/job/PR-2075/ !!"); + LOGGER.error("!! !!"); + LOGGER.error("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); } else { LOGGER.error("Incompatible version of PlotSquared found. Please use PlotSquared v6."); LOGGER.info("https://www.spigotmc.org/resources/77506/");