mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-30 05:53:23 +01:00
Move more info to hover in shop messages to clean up chat
Also fix placeholders not working in not enough stock message
This commit is contained in:
parent
a0630db6f8
commit
3c51f8ed87
@ -91,12 +91,12 @@ public class ErrorMessageSender implements Listener {
|
||||
if (Properties.SHOW_MESSAGE_OUT_OF_STOCK && !Properties.CSTOGGLE_TOGGLES_OUT_OF_STOCK || !Toggle.isIgnoring(event.getOwnerAccount().getUuid())) {
|
||||
Location loc = event.getSign().getLocation();
|
||||
sendMessageToOwner(event.getOwnerAccount(), NOT_ENOUGH_STOCK_IN_YOUR_SHOP, new String[]{
|
||||
"%price", Economy.formatBalance(event.getExactPrice()),
|
||||
"%buyer", event.getClient().getName(),
|
||||
"%world", loc.getWorld().getName(),
|
||||
"%x", String.valueOf(loc.getBlockX()),
|
||||
"%y", String.valueOf(loc.getBlockY()),
|
||||
"%z", String.valueOf(loc.getBlockZ())
|
||||
"price", Economy.formatBalance(event.getExactPrice()),
|
||||
"buyer", event.getClient().getName(),
|
||||
"world", loc.getWorld().getName(),
|
||||
"x", String.valueOf(loc.getBlockX()),
|
||||
"y", String.valueOf(loc.getBlockY()),
|
||||
"z", String.valueOf(loc.getBlockZ())
|
||||
}, event.getStock());
|
||||
}
|
||||
message = Messages.NOT_ENOUGH_STOCK;
|
||||
|
@ -34,16 +34,16 @@ NO_SELLING_HERE: "You can't sell here!"
|
||||
NOT_ENOUGH_SPACE_IN_INVENTORY: "You haven't got enough space in inventory!"
|
||||
NOT_ENOUGH_SPACE_IN_CHEST: "There isn't enough space in chest!"
|
||||
NOT_ENOUGH_ITEMS_TO_SELL: "You don't have enough items to sell!"
|
||||
NOT_ENOUGH_SPACE_IN_YOUR_SHOP: "[%price %item&7 shop](At world: &f%world\nPosition: &f%x/%y/%z)&7 is full! (%seller tried to sell)"
|
||||
NOT_ENOUGH_SPACE_IN_YOUR_SHOP: "[%price %item&7 shop is full!](&f%seller&7 tried to sell\n&7In world: &f%world\n&7At position: &f%x/%y/%z)"
|
||||
|
||||
NOT_ENOUGH_STOCK: "This shop is out of stock."
|
||||
NOT_ENOUGH_STOCK_IN_YOUR_SHOP: "[%price %item&7 shop](At world: &f%world\nPosition: &f%x/%y/%z)&7 is out of stock! (%buyer tried to buy)"
|
||||
NOT_ENOUGH_STOCK_IN_YOUR_SHOP: "[%price %item&7 shop is out of stock!](&f%buyer&7 tried to buy\n&7In world: &f%world\n&7At position: &f%x/%y/%z)"
|
||||
|
||||
YOU_BOUGHT_FROM_SHOP: "You bought %item from %owner for %price."
|
||||
SOMEBODY_BOUGHT_FROM_YOUR_SHOP: "%buyer bought %item for %price from your shop at %world/%x/%y/%z."
|
||||
SOMEBODY_BOUGHT_FROM_YOUR_SHOP: "[%buyer bought %item for %price.](&7In world: &f%world\n&7At position: &f%x/%y/%z)"
|
||||
|
||||
YOU_SOLD_TO_SHOP: "You sold %item to %buyer for %price."
|
||||
SOMEBODY_SOLD_TO_YOUR_SHOP: "%seller sold %item for %price to your shop at %world/%x/%y/%z."
|
||||
SOMEBODY_SOLD_TO_YOUR_SHOP: "[%seller sold %item for %price.](&7In world: &f%world\n&7At position: &f%x/%y/%z)"
|
||||
|
||||
YOU_CANNOT_CREATE_SHOP: "You can't create this type of shop!"
|
||||
NO_CHEST_DETECTED: "Couldn't find a chest!"
|
||||
|
Loading…
Reference in New Issue
Block a user