diff --git a/src/main/java/com/Acrobot/ChestShop/Listeners/PreTransaction/ErrorMessageSender.java b/src/main/java/com/Acrobot/ChestShop/Listeners/PreTransaction/ErrorMessageSender.java index 8f4ecc6..db8f4a1 100644 --- a/src/main/java/com/Acrobot/ChestShop/Listeners/PreTransaction/ErrorMessageSender.java +++ b/src/main/java/com/Acrobot/ChestShop/Listeners/PreTransaction/ErrorMessageSender.java @@ -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; diff --git a/src/main/resources/languages/lang.en.yml b/src/main/resources/languages/lang.en.yml index 9eebd87..245d997 100644 --- a/src/main/resources/languages/lang.en.yml +++ b/src/main/resources/languages/lang.en.yml @@ -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!"