Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2020
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. public String format(int m) {
  2. String result = "§f";
  3. String[] i = String.valueOf(m).replace(".", "/").split("/")[0].split("");
  4. for (int in = 0; in < i.length; in++) {
  5. result = result + i[in];
  6. int pos = i.length - 1 - in;
  7. if ((pos != 0) && (pos % 3 == 0)) {
  8. result = result + ",";
  9. }
  10. }
  11. result += (m > 1 ? " Permisos" : " Permiso");
  12. return result;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement