getCustomNametagTeam
Retrieves or creates a custom nametag team for the player in the specified scoreboard.
This function constructs a unique team name using the player's unique ID, a custom identifier, and a sorting key. If a team with the constructed name does not already exist in the scoreboard, it registers a new team and applies the provided prefix and suffix to it.
Return
The custom Team associated with the player, either newly created or existing.
Parameters
The scoreboard in which the team will be retrieved or created.
A sorting key used as part of the team's unique name, will determine the sorting from a - z in tab.
An optional component to set as the team's prefix. Defaults to null.
An optional component to set as the team's suffix. Defaults to null.
Retrieves or creates a custom nametag team for the player in the specified scoreboard.
This function constructs a unique team name using the player's unique ID, a custom identifier, and a sorting key. If a team with the constructed name does not already exist in the scoreboard, it registers a new team and applies the provided prefix and suffix to it.
Return
The custom Team associated with the player, either newly created or existing.
Parameters
The scoreboard in which the team will be retrieved or created.
A sorting key used as part of the team's unique name, will determine the sorting from a - z in tab.
An optional minimessage string to set as the team's prefix. Defaults to null.
An optional minimessage string to set as the team's suffix. Defaults to null.