Subcommands to plugin.yml

Discussion in 'Plugin Development' started by DigitalCookie, Apr 15, 2014.

Thread Status:
Not open for further replies.
  1. Offline


    Hi, this is probably a really simple question but I dont know how to add sub commands to the plugin.yml here are my commands
    1. /xray
    2. /xray info
    3. /xraycheck <playername>
    how would I add these to the config?
  2. Offline


    If you register the command /xray it will automatically register the command /xray info (if this command is and argument of the /xray command)
  3. Offline


    You have to tell the plugin (in the plugin.yml) what the base command is, in this case it would be xray. So in the plugin.yml you would write that command. Then, you would right the other commands. The plugin.yml should look something like this:
    1. commands:
    2. xray:
    3. xraycheck:
    4. xray info:
Thread Status:
Not open for further replies.

Share This Page