remove result message for commands by default

This commit is contained in:
fullwall 2023-10-14 22:41:10 +08:00
parent 291591b7d4
commit ae4495207e
1 changed files with 6 additions and 2 deletions

View File

@ -377,8 +377,12 @@ public class ShopTrait extends Trait {
}
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);
}