Skip to content

%killer_type% returns blank space instead of player name #192

@quillincn

Description

@quillincn

Checklist

What behaviour is observed?

When a player kills another player, %killer_type% should return the player’s name instead of a blank space.

Expected behaviour

It seems that %killer_type% does not resolve player names correctly and only works as intended for mobs. I understand that, based on its name, it’s not supposed to support player names — only mob types — but without it, there’s no way to translate mob names in certain death messages.

To Reproduce

  1. Replace %killer% with %killer_type% in PlayerDeathMessages > Projectile-Arrow.
  2. Let a skeleton kill a player — the message works correctly and shows the mob name from Messages.yml.
  3. Let a player kill another player with a bow — the resulting message is incorrect:

Image

Spark profiler link

https://spark.lucko.me/Rzk9SkDXDI

Error log (if applicable)

No response

DeathMessages configuration (if applicable)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions