mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-09 20:21:07 +00:00
Removed isUUID method
This commit is contained in:
parent
08f65dbee0
commit
e969aa35da
@ -350,15 +350,6 @@ public class Utils {
|
||||
return Integer.parseInt(getServerVersion().split("_")[1]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a given String is a UUID
|
||||
* @param string String to check
|
||||
* @return Whether the string is a UUID
|
||||
*/
|
||||
public static boolean isUUID(String string) {
|
||||
return string.matches("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[34][0-9a-fA-F]{3}-[89ab][0-9a-fA-F]{3}-[0-9a-fA-F]{12}");
|
||||
}
|
||||
|
||||
/**
|
||||
* Encodes an {@link ItemStack} in a Base64 String
|
||||
* @param itemStack {@link ItemStack} to encode
|
||||
|
Loading…
Reference in New Issue
Block a user