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

Solved How to unregister a default command

Discussion in 'Development' started by UnknownOre, Feb 20, 2019.

  1. UnknownOre

    UnknownOre Silverfish

    Messages:
    21
    GitHub:
    UnknownOre
    for example i want to unregister /list
     
  2. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    PHP:
    $this->getServer()->getCommandMap()->unregister("list");
     
    jasonwynn10 likes this.
  3. Ameer4Real

    Ameer4Real Creeper

    Messages:
    5
    GitHub:
    ameer4real
  4. jasonwynn10 likes this.
  5. Ameer4Real

    Ameer4Real Creeper

    Messages:
    5
    GitHub:
    ameer4real
    Nope, he can just change the API and everything will be fine (Not all the plugins will works with this method, but with this one it should works fine)
     
  6. Don’t change and API unless you know what your doing.
     
    EdwardHamHam and jasonwynn10 like this.
  7. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    This is the development forum. Why spend so much trouble downloading and requiring an extra dependency plugin in the deployment procedure when you could just add a simple line of code?
     
  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.