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)
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)