mirror of
				https://github.com/GayPizzaSpecifications/foundation.git
				synced 2025-11-04 11:39:39 +00:00 
			
		
		
		
	Bifrost: Don't announce uninteresting advancements.
This commit is contained in:
		@ -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}'")
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user