mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-01 15:13:26 +01:00
remove result message for commands by default
This commit is contained in:
parent
291591b7d4
commit
ae4495207e
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user