Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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