1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

disable /help command

Discussion in 'Development' started by BlawoHD, Jun 1, 2019.

  1. BlawoHD

    BlawoHD Silverfish

    Messages:
    21
    How do I disable the /help command or override?
     
  2. Provsnoobgaming

    Provsnoobgaming Baby Zombie

    Messages:
    134
    GitHub:
    provsalt
    As stated in the faq
    PHP:
    $map $server->getCommandMap();
    $old $map->getCommand("help");
    $old->setLabel("help_disabled");
    $old->unregister($map);

    $new = new MyHelpCommand($this);
    $map->register($this->getName(), $new);
    $map->register($this->getName(), $new"?")
     
  3. Akmal

    Akmal Spider

    Messages:
    10
    GitHub:
    AkmalFairuz
    You can unregister /help command on plugin enable.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.