Skip to content

Implement Player locale Setting #1011

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

Merged
merged 3 commits into from
Jan 29, 2019
Merged

Conversation

heisluft
Copy link
Contributor

Motivation:
My plugin, AntiLaby, sends localized messages to players. In order to do this, we need a working PlayerLocaleChangeEvent and player.getLocale() implementation.

Implementation specifics:
The PlayerLocaleChangeEvent is (like in CB) only fired when the player locale actually changes.
I lowercased "en_US" to "en_us", because for quite a while (1.9 afaik) language ids are all lowercased (at least the vanilla ones)

@Pr0methean Pr0methean merged commit a133cfa into GlowstoneMC:dev Jan 29, 2019
@heisluft heisluft deleted the implement-locale branch January 31, 2019 07:32
@heisluft heisluft mentioned this pull request Jan 31, 2019
97 tasks
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.

3 participants