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!
when i place %no-default% it actually says that when they die
@ThisUsernameIsMine
- What do you mean by messages that exceed one line? Is this on MC or in the .txt file? Your text editor application should be able to handle long death messages. I use Notepad on Windows, you could also use TextEdit on Mac.
- Sure, I will add that in a future update
@ChillerKraft
Yes, this plugin does work on 1.7.9.
does this plugin work fine with 1.7.9?
I'm coming from the plugin Death Messages to test your plugin.
But could you please consider adding the following:
- ability to use death messages that exceed one line
- possibility to show a player's (Essentials) display/nickname
Thank You for the plugin! :-)
@teej107
Exactly, you got it, isolate and/or group worlds together.
Damn i should have used those words to explain it, made it sound better.
@marubal21
Yeah lol. Then I understood. You want the ability to disable the custom death messages for certain worlds and also the ability to isolate other worlds from seeing other world death messages.
@teej107
LOL, did you understand what i was getting at? I noticed you asked me to clarify it...
@marubal21
Sounds good. We'll see what can be done.
@TheSimpZone
I have submitted a new update (2.01) recently to fix a bug with using %weapon%. As of now, version 2.0 is the newest one to download. Wait and try it out on 2.01 once it gets approved.
The %weapon% doesn't work - it doesn't get replaced by the name of the weapon. so I get something like "John was killed by James using %weapon%! No errors, nothing else.
Would you consider adding a config with an option to select which worlds you want the custom death messages active on, also maybe an option to share death messages between each other.
For example, if i have 4 worlds, i only want to have custom death meassges active on 3 of the worlds, the 4th world would just use default minecraft death meassges, and then between the other 3 worlds i want world 1 and 2 to be able to only see each others death messages ,while world 3 only sees its own death meassages.
I hope that made some sort of sense.
@Jleeevinnn
The player probably dies from fire if it was from fire aspect.
As for the error, thanks for posting it. I'll release a fix for it very soon.
If a player dies from another player's fire aspect weapon, it doesnt use the message in PLAYER.txt which I think it should.
I am also getting an NPE and no message displayed when a player kills another player with a regular Diamond Axe.
http://hastebin.com/irutelihey.avrasm
I get this error as soon as I add %weapon% to the PLAYER.txt file.
Current PLAYER.txt file:
#&a%player% &7was brutally murdered by &4%killer% &7using their %weapon%
@bilybobby
As of version 1.2, It would be in the world.txt file. I did just release a new version that is currently awaiting approval and the location of where to put the customized death message might change.
With the new version 2.0, you can see which .txt file to use by using the command. It tells you the cause of your death which the .txt files are named by.
@bilybobby
Hello, where would i be able to put in a custom death message for a /kill?
@InsomniaCraft
Did the plugin actually load? You have to create your own death messages within the .txt files generated with it.
Does nothing in 1.7.10. No errors.
@soulscapex
Haven't tested it but it should. I'm not using any parts of code that changed between the updates.
will this work on 1.7.9
@floory565
Treat the color codes as words. You always put spaces between words.
If a txt file somehow isn't generated, you can create it by yourself. The name of the PvP text file is pvp.txt
@teej107
I understand this. This is an example of what would pop up in chat:
#%&GOLD&%floory565 decided to drop an anvil on his head.
Also, no PVP text file is generating. Any suggestions?