aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/utils
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-04-24 14:54:52 +0900
committersyeyoung <cyong06@naver.com>2021-04-24 14:54:52 +0900
commite146d7f64df7782bebdb238b52bd67ed916abd6b (patch)
tree3b00824dba2e2f9f7f2527cd2407d230267ca975 /src/main/java/kr/syeyoung/dungeonsguide/utils
parent5a2e091587c613c3bcd7acc58d7b464149c51bdd (diff)
downloadSkyblock-Dungeons-Guide-e146d7f64df7782bebdb238b52bd67ed916abd6b.tar.gz
Skyblock-Dungeons-Guide-e146d7f64df7782bebdb238b52bd67ed916abd6b.tar.bz2
Skyblock-Dungeons-Guide-e146d7f64df7782bebdb238b52bd67ed916abd6b.zip
commit #1
- YAY PARTY KCIKER!!@!@!
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/utils')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/utils/TextUtils.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/utils/TextUtils.java b/src/main/java/kr/syeyoung/dungeonsguide/utils/TextUtils.java
index acfc430f..a7b4a598 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/utils/TextUtils.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/utils/TextUtils.java
@@ -89,5 +89,17 @@ public class TextUtils {
return stringBuilder.toString();
}
+ public static String insertDashUUID(String uuid) {
+ StringBuilder sb = new StringBuilder(uuid);
+ sb.insert(8, "-");
+ sb = new StringBuilder(sb.toString());
+ sb.insert(13, "-");
+ sb = new StringBuilder(sb.toString());
+ sb.insert(18, "-");
+ sb = new StringBuilder(sb.toString());
+ sb.insert(23, "-");
+
+ return sb.toString();
+ }
} \ No newline at end of file