Skip to content

Types: string

Grant Shotwell edited this page Aug 31, 2020 · 2 revisions

string

Defined Methods

Method Overflow Return Value Description
Format() string Equivalent to string interpolation in C#.

Examples

// Format() Example //
int x = 0;

Chat.Tellraw("@a", "{{x}} is replaced with {x}.".Format());
// "{x} is replaced with 0."

Chat.Tellraw("@a", "{{x + 1}} is replaced with {x + 1}".Format());
// "{x + 1} is replaced with 1."

Clone this wiki locally