Commits

MiniDigger authored and md_5 committed 1f3b0516a64
SPIGOT-439: Add player locale related APIs.
No tags

src/main/java/org/bukkit/entity/Player.java

Modified
1396 1396 */
1397 1397 public <T> void spawnParticle(Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, T data);
1398 1398
1399 1399 /**
1400 1400 * Return the player's progression on the specified advancement.
1401 1401 *
1402 1402 * @param advancement advancement
1403 1403 * @return object detailing the player's progress
1404 1404 */
1405 1405 public AdvancementProgress getAdvancementProgress(Advancement advancement);
1406 +
1407 + /**
1408 + * Gets the player's current locale.
1409 + *
1410 + * The value of the locale String is not defined properly.
1411 + * <br>
1412 + * The vanilla Minecraft client will use lowercase language / country pairs
1413 + * separated by an underscore, but custom resource packs may use any format
1414 + * they wish.
1415 + *
1416 + * @return the player's locale
1417 + */
1418 + public String getLocale();
1406 1419 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut