Expressions
Scripting Expressions
Expressions are text snippets, which are evaluated once the containing command is called.
Formats:
{key}{key:parameters}
| Keyword | Definition |
{call: command} |
Calls the command, returns the reported lines. |
{playercount} |
Count of online players. |
{players} |
Names of online players, comma (,) separated. |
{tps} |
Current tps on the server. |
String Handlers
| Keyword | Definition |
{index:xword text} |
Index location of xword in the text. |
{index:n#xword text} |
... of n'th xword in the text. |
|
|
The n'th line of the | line-splitted text. |
|
|
The n'th number from the text. |
|
|
Substring from a to b (excluding them).a & b can be: #index or text (see examples) |
{wash: text} |
Removes all formatting from the text. |
Examples:
LOG: TPS: §f{tps} §8({playercount} players) --> TPS: 19.6 (36 players)
LOG: TPS: §f{number:4 {call:tps}} --> TPS: 20.0
LOG: Scheduler {line:2 {call:rcmd}} --> Scheduler State: running
LOG: {sub:#1..| orange|banana|apple} --> range
Comments