From d3cb06acc0262feda4b4a2003932cc5bb3b2f1f4 Mon Sep 17 00:00:00 2001 From: Phoenix616 Date: Sat, 26 Jun 2021 23:06:21 +0100 Subject: [PATCH] =?UTF-8?q?Use=20the=20correct=20messages=20=F0=9F=99=88?= =?UTF-8?q?=20(Fixes=20#462)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ChestShop/Listeners/Modules/PriceRestrictionModule.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/Acrobot/ChestShop/Listeners/Modules/PriceRestrictionModule.java b/src/main/java/com/Acrobot/ChestShop/Listeners/Modules/PriceRestrictionModule.java index 957f648..f9930e8 100644 --- a/src/main/java/com/Acrobot/ChestShop/Listeners/Modules/PriceRestrictionModule.java +++ b/src/main/java/com/Acrobot/ChestShop/Listeners/Modules/PriceRestrictionModule.java @@ -128,7 +128,7 @@ public class PriceRestrictionModule implements Listener { BigDecimal minBuyPrice = BigDecimal.valueOf(configuration.getDouble("min.buy_price." + itemType) * amount); if (isValid("min.buy_price." + itemType) && buyPrice.compareTo(minBuyPrice) < 0) { event.setOutcome(BUY_PRICE_BELOW_MIN); - Messages.BUY_PRICE_ABOVE_MAX.sendWithPrefix(event.getPlayer(), "price", buyPrice.toPlainString(), "minprice", minBuyPrice.toPlainString()); + Messages.BUY_PRICE_BELOW_MIN.sendWithPrefix(event.getPlayer(), "price", buyPrice.toPlainString(), "minprice", minBuyPrice.toPlainString()); } BigDecimal maxBuyPrice = BigDecimal.valueOf(configuration.getDouble("max.buy_price." + itemType) * amount); @@ -144,13 +144,13 @@ public class PriceRestrictionModule implements Listener { BigDecimal minSellPrice = BigDecimal.valueOf(configuration.getDouble("min.sell_price." + itemType) * amount); if (isValid("min.sell_price." + itemType) && sellPrice.compareTo(minSellPrice) < 0) { event.setOutcome(SELL_PRICE_BELOW_MIN); - Messages.BUY_PRICE_ABOVE_MAX.sendWithPrefix(event.getPlayer(), "price", sellPrice.toPlainString(), "minprice", minSellPrice.toPlainString()); + Messages.SELL_PRICE_BELOW_MIN.sendWithPrefix(event.getPlayer(), "price", sellPrice.toPlainString(), "minprice", minSellPrice.toPlainString()); } BigDecimal maxSellPrice = BigDecimal.valueOf(configuration.getDouble("max.sell_price." + itemType) * amount); if (isValid("max.sell_price." + itemType) && sellPrice.compareTo(maxSellPrice) > 0) { event.setOutcome(SELL_PRICE_ABOVE_MAX); - Messages.BUY_PRICE_ABOVE_MAX.sendWithPrefix(event.getPlayer(), "price", sellPrice.toPlainString(), "maxprice", maxSellPrice.toPlainString()); + Messages.SELL_PRICE_ABOVE_MAX.sendWithPrefix(event.getPlayer(), "price", sellPrice.toPlainString(), "maxprice", maxSellPrice.toPlainString()); } } }