Add better message for when the shop's sell price is above the buy price

This commit is contained in:
Phoenix616 2021-10-15 15:50:04 +01:00
parent 8655870077
commit 02dd167024
No known key found for this signature in database
GPG Key ID: 40E2321E71738EB0
3 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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!"