CustomDeathMessages icon

CustomDeathMessages -----

_TheTechGuy_ died from cringe



Ever wanted to change those sweet death messages? Well, you're in luck!

Not only can you add death handlers, supporting message broadcasting and command executing, but also you can replace the vanilla death messages with your own!

How things work:
The general principle is simple: you add a handler for a certain trigger which has a value, to execute a finish goal.
In pseudocode:

IF SOMETHING = SOMETHING THEN
DO SOMETHING WITH THE VALUE OF SOMETHING
ENDIF

Triggers:
ITEM_IN_HAND,
> item_name as a parameter
ARMOR_HELMET,
> item_name as a parameter
ARMOR_CHESTPLATE,
> item_name as a parameter
ARMOR_LEGGINS,
> item_name as a parameter
ARMOR_BOOTS,
> item_name as a parameter
HAS_ITEM_IN_INVENTORY,
> item_name as a parameter
PLAYER_LEVEL_UNDER,
> number value as a parameter
PLAYER_LEVEL_OVER,
> number value as a parameter
PLAYER_LEVEL_EQUALTO
> number value as a parameter

Actions:
RUN_COMMAND,
> expects a command as the last argument (starting with /)
BROADCAST_MESSAGE
> expects a message (optionally with color codes using &)

Example.1:

/addhandle ITEM_IN_HAND STICK BROADCAST_MESSAGE &eHe died with a stick in his hand!
> Result: A yellow text "He died with a stick in his hand!" is broadcasted when a player dies with a stick in his main hand.

Example.2:
/addhandle ARMOR_BOOTS DIAMOND_BOOTS RUN_COMMAND /kill @e[type=item]
> Result: All items are destroyed if a player dies with diamond boots aquired.


The second quite handy feature of this plugin is the ability to swap out vanilla death messages with your own!
How-to:
In plugins/CustomDeathMessages you'll find a file called death_messages.yml

Now, this is a YAML file, but editing it is quite easy. Find the death message you need, swap it out (remember, there are placeholders to keep in mind) and done.

There's also 'custom_messages.yml', but this is a data file for the plugin, I strongly advise you not to modify it manually unless you know what you're doing

Configuration options are also available using 'config.yml' in the same directory.


Comment if you have any issues/questions, I'll be happy to help.
Resource Information
Author:
----------
Total Downloads: 171
First Release: Aug 31, 2022
Last Update: Aug 31, 2022
Category: ---------------
All-Time Rating:
1 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings