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!
@LegendaryAdmin
This isn't made using 1.7.9 but it still works on 1.7.9. Make sure you are not using any other plugins that will conflict with this one. Make sure you read and understand How to make a death message. The default message will appear regardless of %no-default% being used if it doesn't have any valid message to grab from the file. %weapon% in a message isn't valid if the player doesn't have a named weapon.
I have been trying a number of messages and none seem to work. This is what my pvp file looks like:
%no-default%
(3 # signs) %killer% collected a deathnote on %player% using %weapon% was brutally raped by %killer% with %weapon%
other things I have tried:
%&gold&% was massacred by %&dark_purple&% %killer% %&gold%& using %weapon%
This only seems to work for me when I am not using a %code% wether it is adding color or a player name/weapon. Once I do that it does not register the death message and goes to default even though I have %no-default% on my first line...
Is this not updated for 1.7.9? Thoughts?
@Roadhog360
Yes, I'm pretty sure those would work also (I haven't tested it) but I don't like having to type the weird symbol and remember the code. I am assuming that some other people don't want to remember codes as well.
Formatting should be &0 &1 &2 &3... So on.
@ZytheisCraft
No it is not possible with this plugin. What do you have in mind?
Is there a way to add new death types without coding them in, and if not do i have permission to add new code?
@robotnikthingy
No it does not. It doesn't need it. Just type in what you want in the file and when your done with it, save it. That is all that is needed! No restart, no reload.
Does your plugin have a reload command, so I can add new death messages without having to restart the server for them to take effect?
@robotnikthingy
Follow the setup instructions. The .txt files will be in the CustomDeathMessages folder. Look for pvp.txt
How do you edit PvP messages, I dont see a text file for them
@SatansDaughter66
Will try and add it in. Some deaths I can't code in (Wither Skeleton) because Minecraft doesn't differentiate the the deaths between wither skeles and normal skeletons. I have already finished coding in essentials nickname support and non-named items support. However I haven't had the time or anybody to help test it.
maybe add a .txt file for lightning? i have the perfect messages for it.
Yay, finally a nice replacement for the defunct DeathTPPlus plugin
To do
###
you just need to type in@ThisUsernameIsMine K, I'll add nickname support as well.
Adding additional spaces does not translate to extra spaces in the in-game message. Treat the color/text formatting like an actual word.
%&RED&% red text is warmer than %&BLUE&% blue text.
oh never mind. i got it working. i hope.
@teej107
just tried it...i added another message and it came up as "SatansDaughter66 %&GRAY&% looked at a creeper the wrong way"
@teej107
Oops, forgot to add this: displayname (essentials nickname) support?
<3
@teej107
Doesn't adding additional spaces translate into extra spaces in the in-game message?
@teej107
thanks.
@ThisUsernameIsMine
Sure thing. I'll add it in an update.