mirror of
https://github.com/GayPizzaSpecifications/foundation.git
synced 2025-08-03 05:30:55 +00:00
Bifrost: Don't announce uninteresting advancements.
This commit is contained in:
parent
9395f43e40
commit
011e3100bf
@ -171,6 +171,11 @@ class FoundationBifrostPlugin : JavaPlugin(), DiscordEventListener, BukkitEventL
|
||||
return
|
||||
}
|
||||
|
||||
val advancementDisplay = e.advancement.display ?: return
|
||||
if (!advancementDisplay.doesAnnounceToChat()) {
|
||||
return
|
||||
}
|
||||
|
||||
val display = AdvancementTitleCache.of(e.advancement) ?: return
|
||||
sendEmbedMessage(Color.CYAN, "${e.player.name} completed the advancement '${display}'")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user