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

Use username instead of nickname in console /sell messages #3693

Merged
merged 1 commit into from
Oct 5, 2020

Conversation

pop4959
Copy link
Member

@pop4959 pop4959 commented Oct 1, 2020

Closes #3662

This PR changes the default placeholder {0} to username. Display name can still be used with {5}.

Before change:
messages.properties
itemSoldConsole=\u00a7e{0} \u00a7asold\u00a7e {1}\u00a7a for \u00a7e{2} \u00a7a({3} items at {4} each).
console
[Essentials] ~test sold dirt for $64 (64 items at $1 each).

After change:
messages.properties
itemSoldConsole=\u00a7e{0} \u00a7asold\u00a7e {1}\u00a7a for \u00a7e{2} \u00a7a({3} items at {4} each).
console
[Essentials] pop4959 sold dirt for $64 (64 items at $1 each).

messages.properties
itemSoldConsole=\u00a7e{5} \u00a7asold\u00a7e {1}\u00a7a for \u00a7e{2} \u00a7a({3} items at {4} each).
console
[Essentials] ~test sold dirt for $64 (64 items at $1 each).

@pop4959 pop4959 added the type: enhancement Features and feature requests. label Oct 1, 2020
@mdcfe mdcfe merged commit d7fc859 into EssentialsX:2.x Oct 5, 2020
Chew pushed a commit to Chew/Essentials that referenced this pull request Nov 25, 2020
…sX#3693)

Closes EssentialsX#3662

This PR changes the default placeholder `{0}` to username. Display name can still be used with `{5}`.

Before change:
messages.properties
`itemSoldConsole=\u00a7e{0} \u00a7asold\u00a7e {1}\u00a7a for \u00a7e{2} \u00a7a({3} items at {4} each).`
console
`[Essentials] ~test sold dirt for $64 (64 items at $1 each).`

After change:
messages.properties
`itemSoldConsole=\u00a7e{0} \u00a7asold\u00a7e {1}\u00a7a for \u00a7e{2} \u00a7a({3} items at {4} each).`
console
`[Essentials] pop4959 sold dirt for $64 (64 items at $1 each).`

messages.properties
`itemSoldConsole=\u00a7e{5} \u00a7asold\u00a7e {1}\u00a7a for \u00a7e{2} \u00a7a({3} items at {4} each).`
console
`[Essentials] ~test sold dirt for $64 (64 items at $1 each).`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Features and feature requests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use username instead of nickname in console /sell messages
3 participants