mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-23 18:45:31 +01:00
Add an additional "%buyer" tag to the out of stock message
This commit is contained in:
parent
c646dd16a0
commit
a4fdc30e17
@ -53,7 +53,9 @@ public class ErrorMessageSender implements Listener {
|
||||
message = Messages.NOT_ENOUGH_ITEMS_TO_SELL;
|
||||
break;
|
||||
case NOT_ENOUGH_STOCK_IN_CHEST:
|
||||
String messageOutOfStock = Messages.prefix(NOT_ENOUGH_STOCK_IN_YOUR_SHOP).replace("%material", getItemNames(event.getStock()));
|
||||
String messageOutOfStock = Messages.prefix(NOT_ENOUGH_STOCK_IN_YOUR_SHOP)
|
||||
.replace("%material", getItemNames(event.getStock()))
|
||||
.replace("%buyer", event.getClient().getName());
|
||||
sendMessageToOwner(event.getOwner(), messageOutOfStock);
|
||||
message = Messages.NOT_ENOUGH_STOCK;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user