Skip to content

Commit ce69f68

Browse files
Fix price limit message not correct
1 parent d14e005 commit ce69f68

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/org/maxgamer/quickshop/api/shop/PriceLimiterCheckResult.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,20 +81,20 @@ default void sendErrorMsg(QuickShop plugin, CommandSender sender, String input,
8181
case REACHED_PRICE_MIN_LIMIT:
8282
plugin.text().of(sender, "price-too-cheap",
8383
minPriceStr).send();
84+
break;
8485
case REACHED_PRICE_MAX_LIMIT:
8586
plugin.text().of(sender, "price-too-high",
8687
maxPriceStr).send();
87-
case PRICE_RESTRICTED:
88-
plugin.text().of(sender, "restricted-prices",
89-
itemName,
90-
minPriceStr,
91-
maxPriceStr).send();
88+
break;
9289
case NOT_VALID:
9390
plugin.text().of(sender, "not-a-number", input).send();
91+
break;
9492
case NOT_A_WHOLE_NUMBER:
9593
plugin.text().of(sender, "not-a-integer", input).send();
94+
break;
9695
case REACH_DIGITS_LIMIT:
97-
plugin.text().of(sender, "digits-reach-the-limit", String.valueOf(getMaxDigit()));
96+
plugin.text().of(sender, "digits-reach-the-limit", String.valueOf(getMaxDigit())).send();
97+
break;
9898
default:
9999
plugin.text().of(sender, "restricted-prices",
100100
itemName,

0 commit comments

Comments
 (0)