CommandRegister
Easy custom commands, in a config file
CommandRegister is a plugin, which allows you to create custom commands, like e.g. /info, /vote, /ranks etc... Which will send configurable lines of text to the player.
Features
I have often been wanting to create custom commands on the fly, without having to code them by hand, which lead me to code this plugin, which the only thing that is required, is you to configure the config file
Easily create custom commands, that sends text to the player |
The new 1.7 JSON chat message format, is supported, but only if you've got ProtocolLib installed on your server |
Permissions support allows you to only allow certain players to use the commands using your own custom permission nodes |
Color code support allows for your messages to be colorful |
Commands and Permissions
Command | Permission | Description |
---|---|---|
/cr or /cmdregister | commandregister.command.cmdregister | Shows information of the CommandRegister commands |
/cr reload or /cmdregister reload | commandregister.command.cmdregister | Reloads the CommandRegister configuration file. |
Configuration
To configure the plugin simply go to edit the config.yml in the plugins folder. A lot of the things are rather self explanatory + There's 2 examples added in the default config file.
commands: cmdname: permission: 'permission.node' json: false lines: - 'Line 1' - 'Line 2' - 'Line 3'
cmdname | Name of the command (e.g. /cmdname) |
permission | Permission node for restrictions |
json | Allows you to turn json on or off (Depends on ProtocolLib) |
lines | The lines that are being sent to the player |
@WsupPanda
I actually made a private plugin that can do that, I might release it soon though. :)
Are the custom commands only able to send text to the player? Because it'd be cool if it can run configurable commands too.. do you think you can add that possibility?
For example: /command1 - /command2 - /command3
So doing /command1 will run other commands that either already exist or were made through this plugin?