mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-23 05:36:45 +01:00
Allow for larger flag values.
This commit is contained in:
parent
da5db1678d
commit
9a9e00670c
@ -44,8 +44,8 @@ public class Flag {
|
|||||||
if (!StringUtils.isAlphanumericSpace(tempValue)) {
|
if (!StringUtils.isAlphanumericSpace(tempValue)) {
|
||||||
throw new IllegalArgumentException("Flag must be alphanumerical (colours and some special characters are allowed)");
|
throw new IllegalArgumentException("Flag must be alphanumerical (colours and some special characters are allowed)");
|
||||||
}
|
}
|
||||||
if (value.length() > 48) {
|
if (value.length() > 128) {
|
||||||
throw new IllegalArgumentException("Value must be <= 48 characters");
|
throw new IllegalArgumentException("Value must be <= 128 characters");
|
||||||
}
|
}
|
||||||
this.key = key;
|
this.key = key;
|
||||||
this.value = key.parseValueRaw(value);
|
this.value = key.parseValueRaw(value);
|
||||||
|
Loading…
Reference in New Issue
Block a user