-
-
Notifications
You must be signed in to change notification settings - Fork 6
Format String Specifications
Yao Chung Hu edited this page Dec 28, 2021
·
1 revision
The formatting placeholders in Command Aliases are divided into 2 groups: Implementation and Execution
The implementation format consist of 4 parameters:
- Class Tool
- Must be Implementation Class Tool
- Method
- Variable Name
- Formatting Type (Optional)
{ClassTool::Method#VariableName@FormattingType}
-
{arg::string#message@jsonString}using optional formatting type {arg::color#color}{arg::brigadier:bool#state}
-
{this::SELF@jsonString}using optional formatting type {message@toUpper}{message}
The execution format consist of 4 parameters, and 3 parameters at most:
- Class Tool
- Must be Execution Class Tool
- When calling a class tool, you can't specify the variable name.
- Method
- Only can be used when class tool is called, if not it will parse as a variable name.
- Variable Name
- Binds Implementation Format Specified Variable Name to Execution.
- Formatting Type (Optional)
{ClassTool::Method#VariableName@FormattingType}
-
{this::SELF@jsonString}using optional formatting type {message@toUpper}{message}
{message#message}{arg::color}
- Home
- Command Aliases File
- Command Aliases Commands
- Command Modes for 0.3.0 and above
- Create a Command Alias (0.9.0)
- Create a Command Alias (0.8.0)
- Create a Command Alias (0.7.0)
- Create a Command Alias (0.5.0)
- Create a Command Alias (0.3.0 - 0.4.2)
- Create a Command Alias (0.0.9 - 0.2.0)
- Roadmap