Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public String format(int m) {
- String result = "§f";
- String[] i = String.valueOf(m).replace(".", "/").split("/")[0].split("");
- for (int in = 0; in < i.length; in++) {
- result = result + i[in];
- int pos = i.length - 1 - in;
- if ((pos != 0) && (pos % 3 == 0)) {
- result = result + ",";
- }
- }
- result += (m > 1 ? " Permisos" : " Permiso");
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement