TPA System
Teleport request system with player parameters.
The Custom Syntax System allows you to define your own command patterns with parameters that automatically substitute into aliases. This is the most powerful feature of Command Maker!
Define a pattern → Create an alias using syntax variables → Users type the command → Variables auto-substitute!
Step 1: Define Pattern
{
"tpa": {
"pattern": "/tpa <player>",
"description": "Teleport request to a player"
}
}
Step 2: Create Alias
{
"tpa_request": "say ${tpa_player} wants to TP to you!"
}
Step 3: Use In-Game
/tpa_request steve
Result: say steve wants to TP to you!
| Element | Format | Example |
|---|---|---|
| Pattern Name | Key in syntax.json | "tpa" |
| Pattern String | /command <param> |
"/tpa <player>" |
| Parameter | Inside < and > | <player> |
| Variable in Alias | ${pattern_param} |
${tpa_player} |
{
"ban": {
"pattern": "/ban <player> <reason>",
"description": "Ban a player with reason"
}
}
Use in alias: ban ${ban_player} ${ban_reason}
{
"msg": {
"pattern": "/msg <player> <message>",
"description": "Send a message to a player"
}
}
Last parameter is greedy and captures everything to the end!
In-game, use:
/syntax
Shows all defined custom syntax patterns and their descriptions.
"tpa", "ban", "warp"Combine syntax parameters with built-in variables! Example: say ${player} sent TPA to ${tpa_player} from ${x} ${y} ${z}
Teleport request system with player parameters.
Dynamic item purchasing with amount parameters.
Player punishment with time and target parameters.
Player ranking with flexible parameters.