This minecraft plugin will announce villager deaths, infections and more to all players on the server. Just place the jar file into your plugins directory and you're good to good.
You can change the options in config.yml:
enabled: true
play-sound: true
# can optionally use a list of sounds
sound-name: 'ENTITY_VILLAGER_DEATH'
sound-name-wandering-trader: 'ENTITY_WANDERING_TRADER_DEATH'
# when using a list of sounds, it won't play the same sound
# twice until all sounds have been played
do-not-use-already-played-sounds: true
# when using a sound list should the list be randomized
randomize-sound-list: true
# use 0 for unlimited radius
max-broadcast-radius: 0
# if you've traded with a villager previously then you will get notified
# note this is only compatible on Paper servers
only-broadcast-if-traded-with: false
# optionally limit broadcasts to specific worlds
broadcast-worlds: ['*']
# only broadcasts if they were formally normal villagers
broadcast-zombie-villager-deaths: true
# villagerannouncer.receive-broadcasts
players-require-premissions: false
# if DiscordSRV is installed then send any messages to the main text channel
discordsrv-send-message-to-main-channel: true
# this is only applicable if you have world filtering
# or are using player permisisons
log-messages-to-console: true
include-wandering-trader: false
# messages are formatted with MiniMessage
# for information go to https://docs.advntr.dev/minimessage/format.html
messages:
# --------- all of these below will populate the %villager% variable: -----------
villager: 'villager'
nametagged-villager: 'villager (%customname%)'
baby-villager: 'baby villager'
nametagged-baby-villager: 'baby villager (%customname%)'
zombie-villager: 'zombie villager'
nametagged-zombie-villager: 'zombie villager (%customname%)'
baby-zombie-villager: 'baby zombie villager'
nametagged-baby-zombie-villager: 'baby zombie villager (%customname%)'
wandering-trader: 'wandering trader'
nametagged-wandering-trader: 'wandering trader (%customname%)'
# ---------------------------------------------------------------------------------
toggle-status-muted: 'VillagerAnnouncer sounds: <color:green>MUTED<reset>'
toggle-status-not-muted: 'VillagerAnnouncer sounds: <color:blue>NOT MUTED<reset>'
# these get appended to the messages above:
toggle-option-mute: '<newline>To mute run <color:gray>/%label% toggle mute<reset>'
toggle-option-unmute: '<newline>To unmute run <color:gray>/%label% toggle unmute<reset>'
# populates %location% variable:
location: '<reset>( <color:gold>XYZ: %x% %y% %z%, <color:yellow>in <color:green>%world-name%</color>)'
# if you want a clickable link with a URL, use the example below:
#location: '<reset><click:OPEN_URL:http://mymapsite.com/world=%world-name%;%x%,%y%,%z%>( <color:gold>XYZ: %x% %y% %z%, <color:yellow>in <color:green>%world-name%</color>)</click>'
# this will populate the %profession% variable if the villager had a profession
# otherwise will be an empty string
villager-with-profession: ' Profession: %villager-profession%, level: %villager-level%'
villager-infection: '<color:yellow>A %villager% has been infected by %entity%! %location%%profession%'
death-by-entity: '<color:yellow>A %villager% was killed by %entity% %location%%profession%'
death-by-misc: '<color:yellow>A %villager% died by %death-cause% %location%%profession%'
wandering-trader-death: '<color:yellow>A %wandering-trader% has died! %location%'
wandering-trader-death-by-entity: '<color:yellow>A %wandering-trader% was brutally murdered by <color:red>%entity%<color:yellow>! %location%'
# Available variables:
# %villager%
# %player%
# %entity%
# %entity-type%
# %death-cause%
# %world-name%
# %world-type%
# %villager-profession%
# %villager-level%
# %villager-experience%
# %villager-type%
file-version: 8Questions or feature suggestions? Join the discord server.