Skip to content

Nametags

Namespace Mc.Scripting · Kind class (sealed)

public sealed class Nametags

Nametag styles per viewer: a prefix and a suffix around a player’s name, a team colour, and the rules for seeing and bumping the team’s players. Each style is a team of the client; the players with the same style share it. Reach it as plugin.Nametags. Call from the tick thread. What a plugin sets is removed when the plugin unloads.

Member Description
void Clear(Player viewer, Player target) Puts one player’s nametag back to the server’s own for one viewer.
void Set(Player viewer, Player target, NametagStyle style) Gives one player a nametag style as one viewer sees him.
public void Clear(Player viewer, Player target)

Puts one player’s nametag back to the server’s own for one viewer.

Parameters

Name Type Description
viewer Player The player who sees it.
target Player The player whose nametag changes.
public void Set(Player viewer, Player target, NametagStyle style)

Gives one player a nametag style as one viewer sees him. A player has one style per viewer; a new style replaces the old one.

Parameters

Name Type Description
viewer Player The player who sees the style.
target Player The player whose nametag changes.
style NametagStyle The style.

NametagStyle · Player