mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Implement Rules. Adds #154
This commit is contained in:
1 parent
5db99578ff
commit
2ceb16dcd2
10 files changed
+435
-102
No files matched your search
@@ -405,6 +405,16 @@ public final class Utilities {
|
||||
return command.replaceAll("COMMAND\\[", "").replaceAll("]", "").split(";");
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove all whitespace from the given string to ready it for parsing
|
||||
*
|
||||
* @param string the string to parse
|
||||
* @return string with whitespace removed
|
||||
*/
|
||||
public static String removeWhitespace(String string) {
|
||||
return string.replaceAll(" ", "");
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if a player has the given enchantment on their armor
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user