MyWarp

MyWarp

220k Downloads

Optional use Player.getLocale() when running on Spigot

TheE opened this issue ยท 1 comments

commented

Since some point before 1.7 Spigot added a getLocale() method to Player that returns the player's current locale as String.

While I do not want to enforce Spigot for using MyWarp, MyWarp could use this method if it is available instead of using reflection to access the locale field within Minecraft's player object.

commented

To use this method at compile time, mywarp-bukkit would need to be builded against Spigot directly. Then: player.getLocale().