Skip to content

Commit

Permalink
remove result message for commands by default
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Oct 14, 2023
1 parent 291591b commit ae44952
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions main/src/main/java/net/citizensnpcs/trait/ShopTrait.java
Expand Up @@ -377,8 +377,12 @@ public ItemStack getDisplayItem(Player player) {
}
if (!meta.hasLore()) {
List<String> lore = Lists.newArrayList();
cost.forEach(a -> lore.add(a.describe()));
result.forEach(a -> lore.add(a.describe()));
cost.forEach(c -> lore.add(c.describe()));
result.forEach(r -> {
if (!(r instanceof CommandAction)) {
lore.add(r.describe());
}
});
if (timesPurchasable > 0) {
lore.add("Times purchasable: " + timesPurchasable);
}
Expand Down

0 comments on commit ae44952

Please sign in to comment.