• Added
BStats
• Added PlaceholderAPI support for custom commands
• Added single arguments for custom commands
• Re-worked /mcd reload (should now reload everything)
• Moved commands to its own file (commands.yml)
Examples:
Code (YAML):
commands:
server:
online:
embed:
title
: Online players
description
: '
%server_online%' <-- PAPI placeholder
author
: '
%user%'
color:
r
: 0
g
: 255
b
: 0
Works the same way as before, but under the name of the command so "online" in this case, you can specify arguments. In this example "online" is the argument, meaning everything in the "online" section will be run if the command looks like | !server online |
Code (YAML):
commands:
stats:
dynamic:
embed:
title
: Online players
description
: 'Some stats'
author
: '
%user%'
color:
r
: 0
g
: 255
b
: 0
If you specify the dynamic argument, that means the argument can be anything. Which can be used if you want to make a stats command for example. You can get the argument by using %arg-1%, so if I did !stats Nesanco, the command would run.