diff options
author | md_5 <git@md-5.net> | 2018-07-18 17:11:44 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-07-18 17:11:44 +1000 |
commit | 6fa4ae693e8084d40686fdb01038da6b2b38db4e (patch) | |
tree | 89e020786c9e153f9eac214398cdaa20558a142e /src/main/java/org/bukkit/craftbukkit/scoreboard/CraftTeam.java | |
parent | 9c9800285698938340e79704430715f81e15cf77 (diff) | |
download | craftbukkit-6fa4ae693e8084d40686fdb01038da6b2b38db4e.tar craftbukkit-6fa4ae693e8084d40686fdb01038da6b2b38db4e.tar.gz craftbukkit-6fa4ae693e8084d40686fdb01038da6b2b38db4e.tar.lz craftbukkit-6fa4ae693e8084d40686fdb01038da6b2b38db4e.tar.xz craftbukkit-6fa4ae693e8084d40686fdb01038da6b2b38db4e.zip |
SPIGOT-4040: Further increase team related limits
Diffstat (limited to 'src/main/java/org/bukkit/craftbukkit/scoreboard/CraftTeam.java')
-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 25cdf96b..cb9ac0f7 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() <= 64, "Display name '" + displayName + "' is longer than the limit of 64 characters"); + Validate.isTrue(displayName.length() <= 128, "Display name '" + displayName + "' is longer than the limit of 128 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() <= 32, "Prefix '" + prefix + "' is longer than the limit of 32 characters"); + Validate.isTrue(prefix.length() <= 64, "Prefix '" + prefix + "' is longer than the limit of 64 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() <= 32, "Suffix '" + suffix + "' is longer than the limit of 32 characters"); + Validate.isTrue(suffix.length() <= 64, "Suffix '" + suffix + "' is longer than the limit of 64 characters"); CraftScoreboard scoreboard = checkState(); team.b(CraftChatMessage.fromStringOrNull(suffix)); |