Solved Kit

Discussion in 'Plugin Development' started by WPM, Jul 4, 2015.

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

    WPM

    Im making a new KitPvP plugin however when I do /kit it brings up the essentials /kit and not mine. I know you do something in Essentials config but I dont exactly know where. If someone can help me that will be perfect! :D
     
  2. Offline

    schwabfl

    /yourpluginname:kit
     
  3. Offline

    WPM

    I just want it so that its /kit and opens my plugins kit command and not essentials. I want to disable essentials kit.
     
  4. Offline

    SuperSniper

    Use PlayerCommandPreprocessEvent, if the e.getMessage() is "/kit", cancel it and do what you want from there, pretty much just copy & paste the code from the /kit command, to the event, so it would cancel the /kit for essentials, but you can do whatever you want with your /kit
     
  5. ^ I wouldn't do that (what @SuperSniper suggested). I'm 99% sure Essentials has built in support to allow other plugins to use the commands they do (overwrite), but I'm not sure how. I know that there's a "disable-commands" section in the essentials configuration, but I'm not sure if that disables Essentials commands only, or any command from any plugin.
     
  6. Offline

    Creeperzombi3

    @WPM
    You could set your plugin's priority to HIGHEST
     
  7. Offline

    xXkguyXx

    How?
     
  8. Offline

    WesJD

    @xXkguyXx I assume he means make your CommandPreProcessEvent at the event priority of highest.
     
  9. Offline

    WPM

    I already got it working thanks guys :D
     
Thread Status:
Not open for further replies.

Share This Page