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

View File

@ -377,8 +377,12 @@ public class ShopTrait extends Trait {
} }
if (!meta.hasLore()) { if (!meta.hasLore()) {
List<String> lore = Lists.newArrayList(); List<String> lore = Lists.newArrayList();
cost.forEach(a -> lore.add(a.describe())); cost.forEach(c -> lore.add(c.describe()));
result.forEach(a -> lore.add(a.describe())); result.forEach(r -> {
if (!(r instanceof CommandAction)) {
lore.add(r.describe());
}
});
if (timesPurchasable > 0) { if (timesPurchasable > 0) {
lore.add("Times purchasable: " + timesPurchasable); lore.add("Times purchasable: " + timesPurchasable);
} }