diff options
author | md_5 <git@md-5.net> | 2018-07-16 19:15:26 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-07-16 19:15:26 +1000 |
commit | 926ea104593c8c91231dea640277b79a9b5b1991 (patch) | |
tree | 951ef44064c51201de60e67110651f5619e0367d /src/main | |
parent | e563bc00db29d41b868416cf5d68b2426502a3b8 (diff) | |
download | craftbukkit-926ea104593c8c91231dea640277b79a9b5b1991.tar craftbukkit-926ea104593c8c91231dea640277b79a9b5b1991.tar.gz craftbukkit-926ea104593c8c91231dea640277b79a9b5b1991.tar.lz craftbukkit-926ea104593c8c91231dea640277b79a9b5b1991.tar.xz craftbukkit-926ea104593c8c91231dea640277b79a9b5b1991.zip |
SPIGOT-4017: Increase Team related length limits
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/scoreboard/CraftTeam.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftTeam.java b/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftTeam.java index 1cbcfc94..25cdf96b 100644 --- a/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftTeam.java +++ b/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftTeam.java @@ -38,7 +38,7 @@ final class CraftTeam extends CraftScoreboardComponent implements Team { public void setDisplayName(String displayName) throws IllegalStateException { Validate.notNull(displayName, "Display name cannot be null"); - Validate.isTrue(displayName.length() <= 32, "Display name '" + displayName + "' is longer than the limit of 32 characters"); + Validate.isTrue(displayName.length() <= 64, "Display name '" + displayName + "' is longer than the limit of 64 characters"); CraftScoreboard scoreboard = checkState(); team.setDisplayName(displayName); @@ -52,7 +52,7 @@ final class CraftTeam extends CraftScoreboardComponent implements Team { public void setPrefix(String prefix) throws IllegalStateException, IllegalArgumentException { Validate.notNull(prefix, "Prefix cannot be null"); - Validate.isTrue(prefix.length() <= 16, "Prefix '" + prefix + "' is longer than the limit of 16 characters"); + Validate.isTrue(prefix.length() <= 32, "Prefix '" + prefix + "' is longer than the limit of 32 characters"); CraftScoreboard scoreboard = checkState(); team.a(CraftChatMessage.fromStringOrNull(prefix)); @@ -66,7 +66,7 @@ final class CraftTeam extends CraftScoreboardComponent implements Team { public void setSuffix(String suffix) throws IllegalStateException, IllegalArgumentException { Validate.notNull(suffix, "Suffix cannot be null"); - Validate.isTrue(suffix.length() <= 16, "Suffix '" + suffix + "' is longer than the limit of 16 characters"); + Validate.isTrue(suffix.length() <= 32, "Suffix '" + suffix + "' is longer than the limit of 32 characters"); CraftScoreboard scoreboard = checkState(); team.b(CraftChatMessage.fromStringOrNull(suffix)); |