How to replace default command to own?

Discussion in 'Plugin Development' started by QuietW, Jun 28, 2019.

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

    QuietW

    Hello. In this thread can be mistakes, because I from russia. Sorry.

    I wanna replace Spigot-command /plugins to command in my plugins.

    How to delete command from core&

    Thank you in advance. Have a nice day
     
  2. Offline

    extramen

    There are 2 basic ways to do it...

    If you are some expert...you could try removing with reflections and CommandMap options (There are tutorials on Bukkit Forum...a quick search with Google should help you).

    And the easier way...and less buggy, is simply using PlayerPreProcessCommandEvent, more easy to do. The problem of last is that on every command it will check your code...so maybe you should use also arraylist instead of perms to get if user can use command.
     
Thread Status:
Not open for further replies.

Share This Page