9
0
mirror of https://github.com/Xiao-MoMi/Custom-Nameplates.git synced 2025-12-28 11:19:26 +00:00

to fix teams

This commit is contained in:
XiaoMoMi
2024-10-11 05:30:24 +08:00
parent 59dda019d8
commit 8bcb7d3380
7 changed files with 106 additions and 16 deletions

View File

@@ -39,6 +39,21 @@ public class UUIDUtils {
);
}
/**
* Check if the id is a UUID
*
* @param id id
* @return true if it's a UUID
*/
public static boolean isUUID(String id) {
try {
UUID.fromString(id);
return true;
} catch (IllegalArgumentException e) {
return false;
}
}
/**
* Converts a {@link UUID} object to a string without dashes.
*