mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Added more rule variables and updated JavaDoc
This commit is contained in:
1 parent
e8c5a55f34
commit
b0a2e82ac6
2 files changed
+47
-3
No files matched your search
@@ -335,6 +335,21 @@ public final class Utilities {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether a String can be cast to a Double
|
||||
*
|
||||
* @param string text to check
|
||||
* @return true if double
|
||||
*/
|
||||
public static boolean isDouble(String string) {
|
||||
try {
|
||||
Double.parseDouble(string);
|
||||
return true;
|
||||
} catch (Exception ex) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculate the time in milliseconds that it should take to break the given block with the given tool
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user