Skip to content

Belowname

Namespace Mc.Scripting · Kind class (sealed)

public sealed class Belowname

Text (and optionally a number) shown under a player’s name, per viewer. It uses the engine’s below-name objective, which is defined while a player has one. Reach it as plugin.Belowname. Call from the tick thread. What a plugin sets is removed when the plugin unloads.

Member Description
void Clear(Player viewer, Player target) Removes the text under one player’s name for one viewer.
void Set(Player viewer, Player target, Component text, int? number) Shows text under one player’s name for one viewer, with a number when given (hidden when null).
public void Clear(Player viewer, Player target)

Removes the text under one player’s name for one viewer.

Parameters

Name Type Description
viewer Player The player who sees it.
target Player The player whose name it was under.
public void Set(Player viewer, Player target, Component text, int? number)

Shows text under one player’s name for one viewer, with a number when given (hidden when null).

Parameters

Name Type Description
viewer Player The player who sees it.
target Player The player whose name it is under.
text Component The text.
number int? The number shown after the text, or null to hide it.

Component · Player