mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-07 08:47:35 +01:00
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 <github@phozop.net>
This commit is contained in:
parent
1078240410
commit
1839404cbf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user