mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-14 14:25:30 +01:00
Add better message for when the shop's sell price is above the buy price
This commit is contained in:
parent
8655870077
commit
02dd167024
@ -74,6 +74,7 @@ public class Messages {
|
||||
public static Message INVALID_SHOP_QUANTITY;
|
||||
public static Message CANNOT_ACCESS_THE_CHEST;
|
||||
|
||||
public static Message SELL_PRICE_HIGHER_THAN_BUY_PRICE;
|
||||
public static Message SELL_PRICE_ABOVE_MAX;
|
||||
public static Message SELL_PRICE_BELOW_MIN;
|
||||
public static Message BUY_PRICE_ABOVE_MAX;
|
||||
|
@ -33,7 +33,7 @@ public class ErrorMessageSender implements Listener {
|
||||
message = Messages.INVALID_SHOP_QUANTITY;
|
||||
break;
|
||||
case SELL_PRICE_HIGHER_THAN_BUY_PRICE:
|
||||
message = Messages.YOU_CANNOT_CREATE_SHOP;
|
||||
message = Messages.SELL_PRICE_HIGHER_THAN_BUY_PRICE;
|
||||
break;
|
||||
case NO_CHEST:
|
||||
message = Messages.NO_CHEST_DETECTED;
|
||||
|
@ -64,6 +64,7 @@ INVALID_SHOP_PRICE: "The shop has an invalid price!"
|
||||
INVALID_SHOP_QUANTITY: "The shop has an invalid quantity!"
|
||||
CANNOT_ACCESS_THE_CHEST: "You don't have permissions to access this chest!"
|
||||
|
||||
SELL_PRICE_HIGHER_THAN_BUY_PRICE: "Sell price is above the buy price!"
|
||||
SELL_PRICE_ABOVE_MAX: "Sell price %price is above maximum %maxprice!"
|
||||
SELL_PRICE_BELOW_MIN: "Sell price %price is below minimum %minprice!"
|
||||
BUY_PRICE_ABOVE_MAX: "Buy price %price is above maximum %maxprice!"
|
||||
|
Loading…
Reference in New Issue
Block a user