Custom Death Messages
Version 2.03
This plugin will give you the option to create custom death messages. You can have more than one death message for each type of death. If you have multiple death messages for one death, it will choose one at random.
This plugin supports deaths from:
Supported deaths are from the DeathCauses and EntityTypes that Bukkit includes. You can see a lists here under "Enum Constant Summary"
Other death causes include:
- Ground - When you die from a fall 5 blocks or less.
Command
- /deathcause <true/false> -Show or hide death cause on death. This does not replace the death message.
- - Permissions: customdeathmessages.deathcause
Use the deathcause command before a death if you don't know what death .txt file to use.
Setup
- Put the plugin in the plugin folder
- Reload the plugins
- The plugin will automatically create .txt files for each death type.
- To make a death message, write at the next available line in the file.
How to make a death message
Type the message in the respective death's .txt file.
- Typing took an arrow to the knee will show up as <player name> took and arrow to the knee
- Having
###
at the beginning of each death message will prevent the killed player's name from automatically showing at the beginning.
###
Such a beautiful day to get blown up by a creeper! will display as Such a beautiful day to get blown up by a creeper!
- Typing %player% will display the killed players name.
was exploded by a green monster. %player% got creepered! will display as <player name> was exploded by a green monster. <player name> got creepered!
- Putting %no-default% on a single line in your text file will prevent the original message from being randomly selected
PvP
- Typing %killer% will display the killer's name. (Will only show if a player was killed by another player)
- Typing %weapon% will display the killer's weapon name. was brutally murdered by %killer% using his %weapon%! will display as <player name> was brutally murdered by <killer's name> using his <killer's weapon name>!
Text Formatting
- To change the message's color or text formatting, use the Minecraft color codes except with '§' as '&'. Ex: &3
&cthis message will be red. That message will be in red.
Note:
- Each death message cannot take up more than one line.
- See http:minecraft.gamepedia.com/Server#Death_messages for a more accurate description of the deaths.
- Please delete the old CustomDeathMessages plugin so they don't conflict with this new one.
- The old death messages .txt files are no longer in use. The new ones will be generated in a new folder "Death Messages" inside of the CustomDeathMessages plugin folder.
- Support for the "other" color codes were removed. Use the Minecraft color codes except with '§' as '&'. Ex: &3
- Some .txt files may be unused with default Minecraft. However some other plugins may use those death types associated with the txt file. To see what kind of text file to use for a certain type of death, see the command.
- You do not need to reload the plugins after editing a death message text file!
so i dont think the color coding works....i did a test death and it showed up as %&GRAY&%wonderful day to provoke a creeper, right %&RED&%%player%?
what am i doing wrong...
This is looking very promising now!
Can you make it so that it shows the item's default (material) name if it has no custom name?
This seems a better alternative than showing no name at all ;-)
'Like' :)
@teej107
thanks so much :)
I honestly thought the regular green was bright green and the dark green was regular green XD whoopsies
If you want to color code or format the text, here is a list of all the codes that minecraft supports. BRIGHT_GREEN isn't a color that minecraft uses. GREEN is pretty bright though. There is a huge amount of death types that a player can suicide from: falling, lava, etc. Just put your custom message in the appropriate .txt file
Color / Text Formatting Codes
%&BLACK&%
%&DARK_BLUE&%
%&DARK_GREEN&%
%&DARK_AQUA&%
%&DARK_RED&%
%&DARK_PURPLE&%
%&GOLD&%
%&GRAY&%
%&DARK_GRAY&%
%&BLUE&%
%&GREEN&%
%&AQUA&%
%&RED&%
%&LIGHT_PURPLE&%
%&YELLOW&%
%&WHITE&%
%&MAGIC&%
%&BOLD&%
%&STRIKETHROUGH&%
%&UNDERLINE&%
%&ITALIC&%
%&RESET&%
Other Codes
%player%
%killer%
%weapon%
%no-default%
###
say i wanted to make the color of the message bright green....would i have to put it like this? %&BRIGHT_GREEN&%
Would it be possible for you to create a page to what the color codes would look like for this plugin?
Great plugin otherwise! So simple and just what i was looking for :)
ALSO: possible addition for players who suicide?
I just released version 1.2. It will be available for download soon.
@Jmscomp
Thank you for letting me know. I'll add the mob related deaths first before I add in explosions from TNT. Adding the mob deaths are very simple for me. For now, I'm working and an easy way to color code and add in PvP deaths as well.
Hey mate, plugin looks promising, but (at least by this page) it appears you're missing deaths for: Silverfish, Slime, Magma Cube, Enderman, Ender Dragon, Cave Spider, Iron Golem, Wolf, Giant, Wither Skeleton, and generic explosions (like TNT)
Woops, forgot to add Wolf death. That'll also be in the next update. If you think I missed something or have a suggestion, write a comment or PM me. Right now, I'm optimizing the code as well as adding PvP and color support for the next update
I just released version 1.1. It will be available for download soon.
This will make it a lot easier now instead of having to think of all the death messages. http:minecraft.gamepedia.com/Server#Death_messages
@teej107
No problem buddy and good luck! :-) +1
@ThisUsernameIsMine
Before I start adding color support, I want to add in every death type. Blaze, wither, magic and of coarse players, etc. I don't know if I'll be able to do support with weapons renamed but I haven't tried it yet.
Does this come with color support?
Will you add PvP death causes too? (i.e. variables for attacker/victim, weapon used, and possibly with custom name support if renamed using an anvil)
Thanks :)