How to add a custom command to the plugin.yml

Discussion in 'Plugin Development' started by hammy2899, Oct 24, 2014.

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

    hammy2899

    Hello well im making a plugin where you can change what you want the command to be so there is a path in the config what will be the command so say in the config its Command: hello now if the player does /hello it will say hello back now if you chaneg the config so its Command: hi then the player does /hi it will say hello back now in the plugin.yml you have to have the command so how would i change that so if they change the command in the config it will change or recognize the command?
     
  2. hammy2899
    Code:
    name: Plugin
    author: author
    version: 1.0
    main: path
    commands:
      command:
        desctiption: description of the command
     
  3. Offline

    hammy2899

    TotallyNotWalshy i know that but how would i change what the command is set to in the plugin.yml if its set in a config that people can change
     
  4. Offline

    fireblast709

    hammy2899 You cannot really do that with configurations. Reflection might work out, with the risk that you break other plugins.
     
Thread Status:
Not open for further replies.

Share This Page