begin integration with fawe

This commit is contained in:
dordsor21
2021-06-08 18:36:45 +01:00
parent 19e97a7738
commit 50d4353045
9 changed files with 281 additions and 4 deletions

View File

@ -323,4 +323,13 @@ public interface PlotPlatform<P> 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;
}
}

View File

@ -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 {