Skip to content

PlaceholderValue

Namespace Mc.Scripting.Services · Kind delegate

public delegate string PlaceholderValue(Player subject, string[] args)

Computes a placeholder’s value for a subject from the arguments written after its name: “%id:arg1:arg2%” passes [“arg1”, “arg2”]. Throwing leaves the last good value in place (or the token as written) and logs the error once a minute.

Parameters

Name Type Description
subject Player The player the text is rendered for (Player.None for a global placeholder).
args string[] The arguments (empty when there are none).

Returns string: The text.