Solved Overriding Commands

Discussion in 'Plugin Development' started by Cryices, Oct 14, 2013.

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

    Cryices

    I need help! I can't override vanilla /enchant command! Any help?
    I set the executor to my plugin in the onEnable. I also disabled it for essentials just incase. Any help, suggestions?
     
  2. Offline

    Chinwe

    Does registering the command /enchant not override it? This worked for me when I was trying to write my own /whitelist command - if all else fails, you could listen for PlayerCommandPreprocessEvent and check if event.getMessage() starts with "/enchant" :)
     
  3. Offline

    Cryices

    Well it kind of works... but whenever i do the /enchant command, underneath what it does is says
    in white /enchant <enchantmentname> [level]
     
  4. Offline

    Chinwe

    Cryices
    Is that the usage you supplied in the plugin.yml, the Essentials command usage, or that of the vanilla command?
     
  5. Offline

    Cryices

    Actually looking into it. Its the essentials plugin.yml usage. I managed to delete it. thanks for your advice.
     
Thread Status:
Not open for further replies.

Share This Page