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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user