Removed isUUID method

This commit is contained in:
Eric 2017-03-30 20:45:09 +02:00
parent 08f65dbee0
commit e969aa35da

View File

@ -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