add user lookup command

This commit is contained in:
Lee
2024-07-04 09:15:26 +01:00
parent 96e675a6be
commit a0e0b82f40
3 changed files with 103 additions and 0 deletions

View File

@ -0,0 +1,21 @@
package cc.fascinated.bat.common;
/**
* @author Fascinated (fascinated7)
*/
public class LongUtils {
/**
* Checks if a string is a long
*
* @param string the string to check
* @return if the string is a long
*/
public static boolean isLong(String string) {
try {
Long.parseLong(string);
return true;
} catch (NumberFormatException exception) {
return false;
}
}
}