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)
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)