diff --git a/pom.xml b/pom.xml index 2c67ec8..ac364cb 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ me.sat7 DynamicShop - 3.11.0 + 3.11.1 jar DynamicShop diff --git a/src/main/java/me/sat7/dynamicshop/guis/ShopSettings.java b/src/main/java/me/sat7/dynamicshop/guis/ShopSettings.java index abc6f1e..a4e538e 100644 --- a/src/main/java/me/sat7/dynamicshop/guis/ShopSettings.java +++ b/src/main/java/me/sat7/dynamicshop/guis/ShopSettings.java @@ -669,6 +669,11 @@ else if (e.getSlot() == FLAG4) return; } + if (data.get().contains("Options.flag.playerpoint")) + { + Bukkit.dispatchCommand(player, "DynamicShop shop " + shopName + " flag playerpoint unset"); + } + Bukkit.dispatchCommand(player, "DynamicShop shop " + shopName + " flag jobPoint set"); } DynaShopAPI.openShopSettingGui(player, shopName); @@ -773,6 +778,11 @@ else if (e.getSlot() == FLAG12) return; } + if (data.get().contains("Options.flag.jobpoint")) + { + Bukkit.dispatchCommand(player, "DynamicShop shop " + shopName + " flag jobpoint unset"); + } + Bukkit.dispatchCommand(player, "DynamicShop shop " + shopName + " flag integerOnly set"); Bukkit.dispatchCommand(player, "DynamicShop shop " + shopName + " flag playerpoint set"); } diff --git a/src/main/java/me/sat7/dynamicshop/transactions/Buy.java b/src/main/java/me/sat7/dynamicshop/transactions/Buy.java index 1e3aa3a..c9cff62 100644 --- a/src/main/java/me/sat7/dynamicshop/transactions/Buy.java +++ b/src/main/java/me/sat7/dynamicshop/transactions/Buy.java @@ -171,7 +171,7 @@ else if (currency == ItemTrade.CURRENCY.PLAYER_POINT) } else if(currency == ItemTrade.CURRENCY.JOB_POINT) { - currencyString = "jobpoint"; + currencyString = "jobPoint"; } else if(currency == ItemTrade.CURRENCY.PLAYER_POINT) {