From 1839404cbf84a9dffa22b4f772aad095823417c4 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 4 May 2013 14:19:19 -0400 Subject: [PATCH] Consider full team display name. Fixes BUKKIT-4186 Through a miscalculation, team display names were being created via command ignoring the first word in the submitted display names. By: mbax --- .../java/org/bukkit/command/defaults/ScoreboardCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/command/defaults/ScoreboardCommand.java b/paper-api/src/main/java/org/bukkit/command/defaults/ScoreboardCommand.java index 687af3d1cb..a805f7c246 100644 --- a/paper-api/src/main/java/org/bukkit/command/defaults/ScoreboardCommand.java +++ b/paper-api/src/main/java/org/bukkit/command/defaults/ScoreboardCommand.java @@ -309,7 +309,7 @@ public class ScoreboardCommand extends VanillaCommand { } else { String displayName = null; if (args.length > 3) { - displayName = StringUtils.join(ArrayUtils.subarray(args, 4, args.length), ' '); + displayName = StringUtils.join(ArrayUtils.subarray(args, 3, args.length), ' '); if (displayName.length() > 32) { sender.sendMessage(ChatColor.RED + "The display name '" + displayName + "' is too long for a team, it can be at most 32 characters long"); return false;