Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

Add comma support to /pay command

Open werogg opened this issue 2 years ago • 0 comments

Information

This PR closes #2355.

Details

Proposed feature:

It doesn't take care of currency-symbol-format-locale but at least it supports both comma and dot as decimal separators. Just noticed that could be confusing if it is used to perform for example: /pay 1.000 (1k), maybe could think in a different approach making use of the currency locale settings or using it as thousand separator is not expected.

Environments tested:

OS: Windows

Java version: 1.8.0_361

  • [x] Most recent Paper version (1.XX.Y, git-Paper-BUILD)
  • [ ] CraftBukkit/Spigot/Paper 1.12.2
  • [ ] CraftBukkit 1.8.8

Demonstration:

werogg avatar May 26 '23 19:05 werogg