Kill Announcer icon

Kill Announcer -----

Announces when a player kills something



Commands

/KA SET on|off entity|entityclass
killannouncer.set
Sets whether or not to announce an entity type. If you do /ka set on sheep for example, when people kill sheep it will announce it. There are global types you can enable as well. If you enable globals, it will NOT use the entity specific list then - only the global.

/KA LIST
killannouncer.list
Lists what entities are enabled

/KA RELOAD
killannouncer.reload
Reloads config from disk

Permissions

killannouncer.exempt.(entitytype)
- People with this permission do not get their kills announced for the entity type. So to suppress sheep killing for the player, give them killannouncer.exempt.sheep for example. If you want the player to be exempt from all, give killannouncer.exempt.*

Miscellaneous

I added global classifications for announcements. When you do /ka set on|off, you will now see these options:

::ALL
::ALL-MONSTERS
::ALL-ANIMALS
::ALL-PLAYERS

They're fairly self explanatory. If you turn any of them on, the system will no longer use the explicit type list. You can have multiple ones turned on as well.

The announcement text is in the config. There are three nodes:

messages.announcement: This is what is sent when the player kills any entity except a player, if the entity has no name set

messages.announcement-named: This is sent if the player kills any entity except a player and the entity has been named with a nametag

messages.announcement-player: This is sent when a player kills another player. Kinda pointless really since MC already announces PVP deaths, but figured I'd add it in case someone wants to suppress the stock announcement in lieu of this one.

Those three also have a -nameditem version which will be used if the entity is killed by a player using a named item. This is done so you can have wording specific to when an item is named. So like you may have:

announcement: '%player% just offed a %entity%'
or even
announcement: '%player% just offed a %entity% with a %item%'
then for the names:
announcement-nameditem: '%player% just offed a %entity% with their %item% named "%itemname%"'

Available variables for announcement:

%player% - The killer
%entity% - The entity type killed
%name% - Entity's name, if available
%item% - Item type used to kill entity
%itemname% - Name of the item, if named
%world% - World entity was killed on%x% - Block X coord entity at which entity was killed
%y% - Block Y coord entity at which entity was killed
%z% - Block Z coord entity at which entity was killed
Resource Information
Author:
----------
Total Downloads: 301
First Release: Dec 19, 2022
Last Update: Dec 20, 2022
Category: ---------------
All-Time Rating:
1 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings