From 9a9e00670cc4202947946ae4543339d5e551605d Mon Sep 17 00:00:00 2001 From: boy0001 Date: Sat, 11 Apr 2015 21:34:00 +1000 Subject: [PATCH] Allow for larger flag values. --- .../main/java/com/intellectualcrafters/plot/flag/Flag.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/flag/Flag.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/flag/Flag.java index c31c4456b..bee4a7270 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/flag/Flag.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/flag/Flag.java @@ -44,8 +44,8 @@ public class Flag { if (!StringUtils.isAlphanumericSpace(tempValue)) { throw new IllegalArgumentException("Flag must be alphanumerical (colours and some special characters are allowed)"); } - if (value.length() > 48) { - throw new IllegalArgumentException("Value must be <= 48 characters"); + if (value.length() > 128) { + throw new IllegalArgumentException("Value must be <= 128 characters"); } this.key = key; this.value = key.parseValueRaw(value);