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!
I just want it so that its /kit and opens my plugins kit command and not essentials. I want to disable essentials kit.
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
^ 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.