mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-29 04:04:43 +02:00
StringMan instead of StringUtils
This commit is contained in:
@ -20,7 +20,7 @@
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
package com.intellectualcrafters.plot.flag;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import com.intellectualcrafters.plot.util.StringMan;
|
||||
|
||||
public class Flag {
|
||||
private AbstractFlag key;
|
||||
@ -36,7 +36,7 @@ public class Flag {
|
||||
* @throws IllegalArgumentException if you provide inadequate inputs
|
||||
*/
|
||||
public Flag(final AbstractFlag key, final String value) {
|
||||
if (!StringUtils.isAsciiPrintable(value)) {
|
||||
if (!StringMan.isAsciiPrintable(value)) {
|
||||
throw new IllegalArgumentException("Flag must be ascii");
|
||||
}
|
||||
if (value.length() > 128) {
|
||||
|
Reference in New Issue
Block a user