Skip to content

PlayerMetaExtensions

Namespace Mc.Scripting.Services · Kind class (static)

public static class PlayerMetaExtensions

Helpers over IPlayerMeta for the plugins that only need text.

Member Description
AffixText The affixes of one kind joined into one text, highest weight first.
public static string AffixText(IPlayerMeta meta, Uuid player, AffixKind kind, string separator = " ")

The affixes of one kind joined into one text, highest weight first.

Parameters

Name Type Description
meta IPlayerMeta The provider.
player Uuid The player.
kind AffixKind Prefixes or suffixes.
separator string = " " Between two affixes.

Returns string: The text (empty when there are none).

AffixKind · IPlayerMeta · Uuid