Pebble's Custom Command Messages
A simple mod that provides administrators with the ability to create custom commands with automatic sending of pre-prepared messages. All settings are made through a command.json file located in the config/pebbles-command-shortcut folder.
Configuration Example
Here's what the configuration file might look like. Note that for each command, you can set multiple message options:
[
{
"command": "hello",
"messages": [
{
"message": "Hello, <player>!"
},
{
"message": "Welcome, <rainbow><player></rainbow>! Use /rtp to get started!"
}
]
},
{
"command": "goodbye",
"messages": [
{
"message": "Goodbye, <player>!"
},
{
"message": "See you later, <rainbow><player></rainbow>!"
}
]
},
{
"command": "vote",
"messages": [
{
"message": "<green>Vote for our server <click:open_url:'https://linktr.ee/dynastyminecraft'><underlined>here</underlined></click> and <blue>get</blue> <bold>some</bold> <italic><yellow>pebbles</yellow></italic></green>!"
}
]
},
{
"command": "ping",
"messages": [
{
"message": "Pong!"
}
]
}
]
The code appearance might seem a bit confusing, but when opened in standard editors (Notepad++, VSCode, and others), it will look much clearer and more convenient for reading.