Implement Rules. Adds #154

This commit is contained in:
h31ix committed 2013-02-24 22:38:18 -05:00
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
*