From 9d8a38a2da56ea0866a31858ed3026043a562164 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 18 Mar 2020 16:10:27 +0100 Subject: [PATCH] Add BentoBox integration option to config --- .../java/de/epiceric/shopchest/api/config/Config.java | 9 +++++---- new-implementation/src/main/resources/config.properties | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/api/src/main/java/de/epiceric/shopchest/api/config/Config.java b/api/src/main/java/de/epiceric/shopchest/api/config/Config.java index b82dd37..44ee167 100644 --- a/api/src/main/java/de/epiceric/shopchest/api/config/Config.java +++ b/api/src/main/java/de/epiceric/shopchest/api/config/Config.java @@ -44,6 +44,7 @@ public class Config { public static final Property PLUGINS_ENABLE_AREASHOP = new Property<>(Boolean.class, "plugins.enable", "areashop", true); public static final Property PLUGINS_ENABLE_ASKYBLOCK = new Property<>(Boolean.class, "plugins.enable", "askyblock", true); + public static final Property PLUGINS_ENABLE_BENTOBOX = new Property<>(Boolean.class, "plugins.enable", "bentobox", true); public static final Property PLUGINS_ENABLE_AUTHME = new Property<>(Boolean.class, "plugins.enable", "authme", true); public static final Property PLUGINS_ENABLE_GRIEFPREVENTION = new Property<>(Boolean.class, "plugins.enable", "griefprevention", true); public static final Property PLUGINS_ENABLE_ISLANDWORLD = new Property<>(Boolean.class, "plugins.enable", "islandworld", true); @@ -51,10 +52,6 @@ public class Config { public static final Property PLUGINS_ENABLE_USKYBLOCK = new Property<>(Boolean.class, "plugins.enable", "uskyblock", true); public static final Property PLUGINS_ENABLE_WORLDGUARD = new Property<>(Boolean.class, "plugins.enable", "worldguard", true); - public static final Property PLUGINS_WORLDGUARD_ALLOW_CREATE_SHOP = new Property<>(Boolean.class, "plugins.worldguard", "default_allow_create_shop", false); - public static final Property PLUGINS_WORLDGUARD_ALLOW_USE_SHOP = new Property<>(Boolean.class, "plugins.worldguard", "default_allow_use_shop", true); - public static final Property PLUGINS_WORLDGUARD_ALLOW_USE_ADMIN_SHOP = new Property<>(Boolean.class, "plugins.worldguard", "default_allow_use_admin_shop", true); - public static final Property PLUGINS_AREASHOP_REMOVE_ON_DELETE = new Property<>(Boolean.class, "plugins.areashop", "remove_shops_on_delete", true); public static final Property PLUGINS_AREASHOP_REMOVE_ON_UNRENT = new Property<>(Boolean.class, "plugins.areashop", "remove_shops_on_unrent", true); public static final Property PLUGINS_AREASHOP_REMOVE_ON_RESELL = new Property<>(Boolean.class, "plugins.areashop", "remove_shops_on_resell", true); @@ -64,6 +61,10 @@ public class Config { public static final Property PLUGINS_TOWNY_PLOTS_FOR_MAYOR = new Property<>(StringList.class, "plugins.towny", "shop_plots_for_mayor", new StringList("commercial")); public static final Property PLUGINS_TOWNY_PLOTS_FOR_KING = new Property<>(StringList.class, "plugins.towny", "shop_plots_for_king", new StringList("commercial")); + public static final Property PLUGINS_WORLDGUARD_ALLOW_CREATE_SHOP = new Property<>(Boolean.class, "plugins.worldguard", "default_allow_create_shop", false); + public static final Property PLUGINS_WORLDGUARD_ALLOW_USE_SHOP = new Property<>(Boolean.class, "plugins.worldguard", "default_allow_use_shop", true); + public static final Property PLUGINS_WORLDGUARD_ALLOW_USE_ADMIN_SHOP = new Property<>(Boolean.class, "plugins.worldguard", "default_allow_use_admin_shop", true); + public static final Property DATABASE_TYPE = new Property<>(DatabaseType.class, "database", "type", DatabaseType.SQLITE); public static final Property DATABASE_TABLE_PREFIX = new Property<>(String.class, "database", "table_prefix", "shopchest_"); public static final Property DATABASE_MYSQL_HOSTNAME = new Property<>(String.class, "database.mysql", "hostname", ""); diff --git a/new-implementation/src/main/resources/config.properties b/new-implementation/src/main/resources/config.properties index 962b271..55c8468 100644 --- a/new-implementation/src/main/resources/config.properties +++ b/new-implementation/src/main/resources/config.properties @@ -38,6 +38,7 @@ economy_log.cleanup_days=30 plugins.enable.areashop=true plugins.enable.askyblock=true +plugins.enable.bentobox=true plugins.enable.authme=true plugins.enable.griefprevention=true plugins.enable.islandworld=true