mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-22 18:55:17 +01:00
Remove dependency on apache util
This commit is contained in:
parent
4ef974fbde
commit
211d636bfb
@ -13,7 +13,6 @@ import java.util.jar.JarFile;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import org.apache.commons.lang.Validate;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.Chunk;
|
||||
@ -578,7 +577,7 @@ public class Util {
|
||||
*/
|
||||
@NonNull
|
||||
public static String stripSpaceAfterColorCodes(@NonNull String textToStrip) {
|
||||
Validate.notNull(textToStrip, "Cannot strip null text");
|
||||
if (textToStrip == null) return "";
|
||||
textToStrip = textToStrip.replaceAll("(" + ChatColor.COLOR_CHAR + ".)[\\s]", "$1");
|
||||
return textToStrip;
|
||||
}
|
||||
@ -738,7 +737,7 @@ public class Util {
|
||||
}
|
||||
return regenerator;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Checks what version the server is running and picks the appropriate NMS handler, or fallback
|
||||
* @return PasteHandler
|
||||
|
Loading…
Reference in New Issue
Block a user