Add placeholds to TransactionListener.java
This commit is contained in:
parent
789a4e0e3b
commit
f646d1283b
|
|
@ -55,7 +55,7 @@ public class ShopTypeConfig {
|
|||
|
||||
public String playerInventoryFull = "<red>You do not have enough space in your inventory to buy from this shop.";
|
||||
public String playerNoFunds = "<red>You do not have sufficient funds to trade with this shop.";
|
||||
public String playerBought = "<white>You bought <amount> <item>(s) from <shopownername> for <price>.";
|
||||
public String playerBought = "<white>You bought <amount> <item>(s) from <ownername> for <price>.";
|
||||
public String shopSold = "<white><user> bought <amount> <item>(s) from you for <price>.";
|
||||
public String shopInventoryFull = "<red>This shop does not have enough space in its inventory.";
|
||||
public String shopNoStock = "<red>This shop is out of stock.";
|
||||
|
|
|
|||
|
|
@ -106,7 +106,8 @@ public class TransactionListener extends EventListener {
|
|||
TagResolver placeholders = TagResolver.resolver(
|
||||
Placeholder.unparsed("ownername", shop.getOwnerName()),
|
||||
Placeholder.unparsed("price", shop.getPrice() + ""),
|
||||
Placeholder.unparsed("amount", shop.getAmount() + "")
|
||||
Placeholder.unparsed("amount", shop.getAmount() + ""),
|
||||
Placeholder.component("item", ShopUtil.itemNameComponent(shop.getItemStack()))
|
||||
);
|
||||
if (transactionError != TransactionError.NONE) {
|
||||
switch (transactionError) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user