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.
This commit is contained in:
parent
c1cd6ec06d
commit
2fb7b85434
@ -309,7 +309,7 @@ public class ScoreboardCommand extends VanillaCommand {
|
|||||||
} else {
|
} else {
|
||||||
String displayName = null;
|
String displayName = null;
|
||||||
if (args.length > 3) {
|
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) {
|
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");
|
sender.sendMessage(ChatColor.RED + "The display name '" + displayName + "' is too long for a team, it can be at most 32 characters long");
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user