Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to always show item in player death messages #1418

Merged
merged 2 commits into from
Aug 23, 2023
Merged

Add option to always show item in player death messages #1418

merged 2 commits into from
Aug 23, 2023

Conversation

MelnCat
Copy link
Contributor

@MelnCat MelnCat commented Aug 23, 2023

Currently, the item in player death messages is only shown if it is renamed, i.e. Player was killed by Player2 using [cool sword].
This patch adds a config option to allow always having the item show up, so if a player is killed with a non-renamed diamond sword, the death message will note that the killing weapon was a diamond sword.

Copy link
Member

@granny granny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • the config option should be checked first before the ItemStack#hasCustomHoverName() method
  • please PR to PurpurDocs the new config option

@granny granny added the needs-docs A pull request to PurpurDocs is required before merge label Aug 23, 2023
@granny granny removed the needs-docs A pull request to PurpurDocs is required before merge label Aug 23, 2023
@granny granny merged commit 8d384b0 into PurpurMC:ver/1.20.1 Aug 23, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants