You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Number formatting in /mspt and /tps uses the system locale #14496
PaperMSPTCommand (new DecimalFormat("########0.0")) and Spigot's TicksPerSecondCommand (new DecimalFormat("########0.0")) don't specify a locale, so the output depends on the JVM's default locale. On a German locale, for example, 19.5 prints as 19,5.
Mojang always formats numbers with Locale.ROOT, and Paper's own RAMDetails already uses DecimalFormatSymbols.getInstance(Locale.ROOT). The server's locale is unrelated to the locale of the players reading the output.
Moonrise's EntityUtil (new DecimalFormat("#,##0.000"), used in entity dumps in logs) has the same issue. Reported upstream at Tuinity/Moonrise#228.
Activity