main/Death Messages Setup
CRITICAL NOTE:
In the current version of Bukkit, it is impossible to differentiate between certain scenarios and others, thus the mob_fireball.txt file I do not believe will work, but you can always try it (would only work for Blazes and Ghasts at best though). The others should work fine however.
If you are new to MineReaper Death Messages, please read ALL of the text in it's entirety. I will no longer be helping people who have not read how to set these things up.
Aliasing
An alias is a shortcut to a game variable that you can insert into your custom death messages.
| Alias | Description |
|---|---|
| %p | The player that was killed. |
| %e | The enemy who killed the player. This can be a mob or a player. (Does not work for some kills currently, like creeper explosions as it is not currently possible in the current Bukkit version to differentiate between a creeper blowing them up vs. a ghast blowing them up, etc.) |
| %i | The item the enemy player was holding when they killed the player. (pvp_shot.txt, pvp_slain.txt ONLY) |
Examples
So let's use an example for creating a death message in the pvp_shot.txt file, I would add:
- %p took an arrow to the knee from %e
Here is another example for pvp_slain.txt:
- %p was killed by %e with %i
Note: It's very important that you put each death message on it's own line!
File Descriptions
Note: If you leave out the %p alias, the death message will not display the name of the player who was killed.
| File | Description | Supported Aliases |
|---|---|---|
| block_exploded.txt | Is used for block explosion deaths, like TNT killed a player. | %p |
| cactus.txt | Self explanatory. | %p |
| dispenser.txt | This file supports death messages where the player is shot by arrows from a dispenser. | %p |
| drowned.txt | Again self explanatory. | %p |
| fell.txt | Self explanatory. | %p |
| fire_block.txt | These death messages are called for example when a player dies standing on a block of burning nether rock. | %p |
| fire_effect.txt | These death messages are called when the player burns to death. | %p |
| lava.txt | Called when the player dies in lava. | %p |
| mob_exploded.txt | Called when a mob explodes and kills the player. | %p |
| mob_fireball.txt | Supposed to be called when a Fireball from Ghast/Blaze kills the player (may not be working, see notes) | %p, %e |
| mob_shot.txt | Called when a player is killed by a mob's ranged attack. | %p, %e |
| mob_slain.txt | Called when a mob melee's a player to death. | %p, %e |
| potion_of_harming.txt | Called when a player is killed by a potion of harming (dispenser or drinking). | %p |
| pvp_killed.txt | Called when a player is pvp killed by Potion of Harming. | %p, %e |
| pvp_shot.txt | Called when a player is killed by another player's bow attack. | %p, %e, %i |
| pvp_slain.txt | Called when a player is killed by another player in melee combat. | %p, %e, %i |
| starvation.txt | Called when a player starves to death. | %p |
| suffocation.txt | Called when a player suffocates. | %p |
| suicide.txt | Called when a player kills themself (i.e. - with Potion of Harming). | %p |
| unknown_death.txt | Called in place of the <Player> died message. | %p |
| void.txt" | Called when a player dies in the void. | %p |
Note: Some plugins come with their own kill commands and custom death messages, such as Essentials /kill command, in these cases, MineReaper will not use it's own custom death message for that command.
Note 2: You will know if an alias is supported or not because when a player dies in game and an unsupported alias is used, it will actually display the alias (%e for example).
Comments