- Death Notes6.3.6
- Placeholder API2.2.*
Sends a discord message when a death occurs on the server using a webhook. When the message is sent can be configured by specifying the victim or attacking entity. The message is a customizable embed
Configuration
{
"Webhook url": "https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks",
"Display Options (Victim -> Attackers)": {
"Player": [
"*"
],
"Animal": [
"Player"
]
},
"Death Message": {
"Content": "",
"Embed": {
"Enabled": true,
"Title": "{server.name}",
"Description": ":crossed_swords: {discorddeath.message} :crossed_swords:",
"Url": "",
"Embed Color": "#ff6961",
"Image Url": "",
"Thumbnail Url": "",
"Fields": [
{
"Title": "Victim Type",
"Value": "{discorddeath.victim.type}",
"Inline": true
},
{
"Title": "Victim",
"Value": "{discorddeath.victim.name}({discorddeath.victim.id})",
"Inline": true
},
{
"Title": "Body Part",
"Value": "{discorddeath.victim.bodypart}",
"Inline": true
},
{
"Title": "Attacker Type",
"Value": "{discorddeath.killer.type}",
"Inline": true
},
{
"Title": "Attacker",
"Value": "{discorddeath.killer.name}({discorddeath.killer.id})",
"Inline": true
},
{
"Title": "Attacker Health",
"Value": "{discorddeath.killer.health:0.0} HP",
"Inline": true
},
{
"Title": "Weapon",
"Value": "{discorddeath.killer.weapon}({discorddeath.killer.attachments}) ",
"Inline": true
},
{
"Title": "Distance",
"Value": "{discorddeath.killer.distance:0.0} Meters",
"Inline": true
},
{
"Title": "Entity Owner",
"Value": "{discorddeath.killer.owner}",
"Inline": true
}
],
"Footer": {
"Icon Url": "",
"Text": "",
"Enabled": true
}
}
},
"Debug Level (None, Error, Warning, Info)": "None"
}
Display Options
You can filter which deaths get sent to discord.This is done using the "Display Options" config section.Here you can specify When an entity type is killed which attackers it should show for. If you wish to show for all attackers your can use *
. You can get a list of entity types Here
Available Replacements
{discorddeath.victim.type}
- Displays the victim entity type{discorddeath.victim.name}
- Displays the victim players name if player else entity name{discorddeath.victim.id}
- Displays the victim steam if player else entity id{discorddeath.victim.bodypart}
- Displays the victim body part that was hit{discorddeath.killer.type}
- Displays the killer entity type{discorddeath.killer.id}
- Displays the killer steam if player else entity id{discorddeath.killer.name}
- Displays the attacker players name if player else entity name{discorddeath.killer.weapon}
- Displays the killer's weapon{discorddeath.killer.attachments}
- Displays the killer's attachments{discorddeath.killer.health}
- Displays the killer's health{discorddeath.killer.owner}
- Displays the Owners name of the entity that did the killing{discorddeath.killer.distance}
- Displays the distance to the victim the attacker was{discorddeath.killer.message}
- Displays the default death message
Localization
{
"UnknownOwner": "Unknown Owner"
}
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.