Question about plugin.yml file

Discussion in 'Plugin Development' started by DarkFuzzyCookie, Jul 10, 2013.

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

    DarkFuzzyCookie

    Hi, so I am currently developing a plugin, and I came across an issue. I want the plugin commands to be player made. For example, if they type /kp create <name>, and if a player types /<name>, that command would do something(give them a defined item, anything for now). I don't know how to do this since you have to define your commands directly in the plugin.yml class. Any help would be greatly appreciated.
     
  2. Offline

    drtshock

    You can also use the CommandPreProcessEvent which doesn't have to be registered in the plugin.yml
     
  3. Offline

    DarkFuzzyCookie

    drtshock
    Hm, didn't think of that. Thank you. I will try it out, and tell you how it goes.
     
    drtshock likes this.
  4. Offline

    DarkFuzzyCookie

    drtshock
    I believe that CommandPreProcessEvent is actually PlayerCommandPreprocessEvent.
     
Thread Status:
Not open for further replies.

Share This Page