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

Unregister Command

Discussion in 'Development' started by BLOCKSTORM, Mar 27, 2018.

  1. BLOCKSTORM

    BLOCKSTORM Witch

    Messages:
    67
    Is there any way to unregister the /msg command, so i can make a new one?
     
  2. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    You can cancel the event. I remember that this was working about a year ago.
     
  3. TheDiamondYT

    TheDiamondYT Zombie

    Messages:
    298
    GitHub:
    TheDiamondYT1
    Try shoghicp's method. It's old, but probably the best method currently.

     
    RicardoMilos384 likes this.
  4. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    isnt there a new method to completely remove+unregister the command rather then override since the new update?
     
    jasonwynn10 likes this.
  5. TheDiamondYT

    TheDiamondYT Zombie

    Messages:
    298
    GitHub:
    TheDiamondYT1
    idk
     
  6. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    tho i dont recommend unregistering aliases by hand as you can often miss something and result in unintended behavior
     
  7. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
  8. TwistedAsylumMC

    TwistedAsylumMC Slime

    Messages:
    96
    GitHub:
    twistedasylummc
    PHP:
    Server::getInstance()->getCommandMap->unregister(new TellCommand());
    i believe
     
  9. Tee7even

    Tee7even Slime

    Messages:
    81
    GitHub:
    tee7even
    Not exactly, that won't work. You have to pass an exact instance of the command you want to unregister, so you would have to get it first.
     
    jasonwynn10 likes this.
  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.