HomeJavaModsSpyDeathMessages
SpyDeathMessages
ModsJava

SpyDeathMessages

by YourSenior · on Modrinth

An advanced, fully customisable death messages plugin for Minecraft servers Replaces the vanilla death message with your own styled chat lines, action bar…

⬇ Download on Modrinth
SpyDeathMessages — screenshot 1SpyDeathMessages — screenshot 2

SpyDeathMessages

An advanced, fully customisable death messages plugin for Minecraft servers running Spigot / Paper 1.21+.

Replaces the vanilla death message with your own styled chat lines, action bar messages, titles, and subtitles — with full hex colour and Minecraft colour code support.

logo

Features


Installation

  1. Download SpyDeathMessages.jar
  2. Place it in your server's plugins/ folder
  3. Start or restart the server
  4. The plugin will generate plugins/SpyDeathMessages/config.yml automatically
  5. Edit the config to your liking, then run /dm reload

Commands

Command Who can use it What it does
/dm toggle Every player Turns death messages on or off for yourself only
/dm reload Admins (op) Reloads config.yml without restarting the server
/dm help Everyone Shows the help list in chat

Alias: /deathmessages works the same as /dm


Permissions

Permission Default Description
spydm.admin OP Grants access to all admin commands (includes spydm.reload)
spydm.reload OP Allows reloading the config with /dm reload

/dm toggle requires no permission — it is available to every player by default.


Per-Player Toggle

Any player can run /dm toggle to hide death messages from their own screen.

The player who died always appears in the message for others — the toggle only controls whether you see messages on your screen.


Configuration (config.yml)

Settings

settings:
  # Prefix shown in plugin feedback messages
  prefix: "#a8a8a8[#00a4fcDeathMsg#a8a8a8] "

  # Hide the vanilla Minecraft death message?
  cancel_vanilla_message: true

  # Who receives death messages:
  #   global  - all online players
  #   world   - only players in the same world
  #   radius  - only players within broadcast_radius blocks
  broadcast_mode: global
  broadcast_radius: 100

  # Title animation (in ticks, 20 ticks = 1 second)
  title_fade_in: 10
  title_stay: 60
  title_fade_out: 10

Message Types

There are two message types in the config:

Key When it triggers
killed A player is killed by another player (melee or projectile)
died A player dies from any other cause (fall, fire, lava, void, mob, etc.)

Message Structure

Each message type follows this structure:

messages:
  killed:              # or: died
    module:
      chat:
        enabled: true      # show in chat? true/false
        message:
          - "Line one"     # if multiple lines, one is picked at random
          - "Line two"
      actionbar:
        enabled: true      # show in action bar? true/false
        message:
          - "Action bar text"
      title:
        enabled: false     # show as big title? true/false
        message:
          - "Title text"
      subtitle:
        enabled: false     # show as subtitle below title? true/false
        message:
          - "Subtitle text"

Set enabled: false on any channel to completely disable it.
Set enabled: true to activate it.


Placeholders

Use these inside any message string:

Placeholder Replaced with
%victim% Name of the player who died
%attacker% Name of the player who killed them
%weapon% Name of the item the killer was holding
%world% Name of the world the death happened in

%attacker% and %weapon% are only filled for killed messages. They will be empty for died messages.


Colour Codes

You can use both formats anywhere in messages:

Hex colours:

#ff1313   →  red
#00a4fc   →  blue
#a8a8a8   →  grey
#ffcc00   →  gold

Legacy & codes:

&a  →  green          &c  →  red
&b  →  aqua           &e  →  yellow
&d  →  light purple   &f  →  white
&0–&9  →  colours     &l  →  bold
&o  →  italic         &n  →  underline
&m  →  strikethrough  &k  →  obfuscated
&r  →  reset

Example combining both:

"#a8a8a8» #ff1313☠ #ff1313%victim% #a8a8a8was killed by #00a4fc%attacker%"

Random Messages

If you provide more than one line in the message list, the plugin picks one at random each time a player dies:

chat:
  enabled: true
  message:
    - "#a8a8a8» #ff1313☠ #ff1313%victim% #a8a8a8was slain by #00a4fc%attacker%"
    - "#a8a8a8» #ff1313☠ #ff1313%victim% #a8a8a8was killed by #00a4fc%attacker%"
    - "#a8a8a8» #ff1313☠ #ff1313%victim% #a8a8a8didn't survive %attacker%"

Default Config

settings:
  prefix: "#a8a8a8[#00a4fcDeathMsg#a8a8a8] "
  cancel_vanilla_message: true
  broadcast_mode: global
  broadcast_radius: 100
  title_fade_in: 10
  title_stay: 60
  title_fade_out: 10

messages:

  killed:
    module:
      chat:
        enabled: true
        message:
          - "#a8a8a8» #ff1313☠ #ff1313%victim% #a8a8a8was slain by #ff1313🗡 #00a4fc%attacker% #a8a8a8using #ffcc00%weapon%"
          - "#a8a8a8» #ff1313☠ #ff1313%victim% #a8a8a8was killed by #00a4fc%attacker%"
      actionbar:
        enabled: true
        message:
          - "#ff1313☠ %victim% was killed by %attacker%"
      title:
        enabled: false
        message:
          - "#ff1313☠ YOU DIED"
      subtitle:
        enabled: false
        message:
          - "#a8a8a8Killed by #00a4fc%attacker%"

  died:
    module:
      chat:
        enabled: true
        message:
          - "#a8a8a8» #ff1313☠ #ff1313%victim% #a8a8a8has died"
      actionbar:
        enabled: false
        message:
          - "#ff1313☠ %victim% has died"
      title:
        enabled: false
        message:
          - "#ff1313☠ YOU DIED"
      subtitle:
        enabled: false
        message:
          - ""

Files Created by the Plugin

File Location Purpose
config.yml plugins/SpyDeathMessages/ All message and settings configuration
opted_out.txt plugins/SpyDeathMessages/ Saves UUIDs of players who turned off death messages

Building from Source

Requires Java 8+ and Maven.

mvn package

Output: target/SpyDeathMessages.jar


Compatibility

Item Version
Minecraft 1.21+
Server software Spigot, Paper
Java 8 or higher

Author

Made by YourSenior

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more