Patbox / TextPlaceholderAPI

Placeholder API for Fabric
GNU Lesser General Public License v3.0
38 stars 17 forks source link

pos arguments #22

Closed mocksonline closed 1 year ago

mocksonline commented 2 years ago

I noticed that in src/main/java/eu/pb4/placeholders/impl/placeholder/builtin/PlayerPlaceholders.java, pos_[x,y,z] has own arguments which can change the output format.

if (arg != null) { try { int x = Integer.getInteger(arg); format = "%." + x + "f"; } catch (Exception e) { format = "%.2f"; } }

But when I use %player:pos_x 1% , it doesn't change. (%player:pos_x 1% written in config file of styledplayerlist_2.2.1+1.19, mod downloaded from modrinth)