extends LocaleHolder { */ @NonNull String toLegacyPlatformString(@NonNull Component component); + /** + * Returns if the FAWE-P2 hook is active/enabled + * + * @return status of FAWE-P2 hook + */ + default boolean isFaweHooking() { + return false; + } + } diff --git a/Core/src/main/java/com/plotsquared/core/configuration/Settings.java b/Core/src/main/java/com/plotsquared/core/configuration/Settings.java index 636cc4b56..0fc83d57d 100644 --- a/Core/src/main/java/com/plotsquared/core/configuration/Settings.java +++ b/Core/src/main/java/com/plotsquared/core/configuration/Settings.java @@ -608,6 +608,17 @@ public class Settings extends Config { } + @Comment("Enable or disable all of or parts of the FAWE-P2 hook") + public static final class FAWE_Components { + + @Comment("Use FAWE for queue handling.") + public static boolean FAWE_HOOK = true; + public static boolean CUBOIDS = true; + public static boolean CLEAR = true; + public static boolean COPY_AND_SWAP = true; + public static boolean SET_BIOME = true; + + } @Comment("Enable or disable parts of the plugin specific to using Paper") public static final class Paper_Components { diff --git a/build.gradle.kts b/build.gradle.kts index 47736acbf..59cca943a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -39,6 +39,11 @@ allprojects { url = uri("https://jitpack.io") } + maven { + name = "IntellectualSites Releases Repository" + url = uri("https://mvn.intellectualsites.com/content/repositories/releases") + } + maven { name = "IntellectualSites Snapshots Repository" url = uri("https://mvn.intellectualsites.com/content/repositories/snapshots") diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 3d1e182f6..97a447520 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -14,6 +14,7 @@ guice = "5.0.1" findbugs = "3.0.1" worldedit = "7.2.5" +fawe = "p2v6-8" vault = "1.7" placeholderapi = "2.10.9" luckperms = "5.3" @@ -63,6 +64,7 @@ findbugs = { group = "com.google.code.findbugs", name = "annotations", version.r # Plugins worldeditCore = { group = "com.sk89q.worldedit", name = "worldedit-core", version.ref = "worldedit" } worldeditBukkit = { group = "com.sk89q.worldedit", name = "worldedit-bukkit", version.ref = "worldedit" } +fastasyncworldeditBukkit = { group = "com.intellectualsites.fawe", name = "FAWE-Bukkit", version.ref = "fawe" } vault = { group = "com.github.MilkBowl", name = "VaultAPI", version.ref = "vault" } placeholderapi = { group = "me.clip", name = "placeholderapi", version.ref = "placeholderapi" } luckperms = { group = "net.luckperms", name = "api", version.ref = "luckperms" }