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

Solved Is it possible to hide this?

Discussion in 'Development' started by KHAV, Jun 2, 2018.

  1. KHAV

    KHAV Baby Zombie

    Messages:
    152
    GitHub:
    xkhhv
    Is it possible to make this suggestions be hide when you try to type a command?

    i mean this:
    commands.png
     
  2. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Remove command from availablecommands packet or cancel it if you want to hide all commands
     
    KHAV likes this.
  3. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    What for?
     
  4. KHAV

    KHAV Baby Zombie

    Messages:
    152
    GitHub:
    xkhhv
    Thank you solved!

    I just tried this code:
    PHP:
    public function onPacketSend(DataPacketSendEvent $event){
        if (
    $event->getPacket() instanceof AvailableCommandsPacket){
            
    $event->setCancelled();
        }
    }
     
  5. KHAV

    KHAV Baby Zombie

    Messages:
    152
    GitHub:
    xkhhv
    It is not important to answer your question:)
     
  6. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    no u
     
    MioTaku and Levi like this.
  7. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    someone wanna hide some command for shady stuff and dont wanna let members see it!/s
    maybe a backdoor plugin with a hidden secret command to OP executor?/s
    when people dont say what they want to do we can always assume it's meant for the most evilest thing of all the possible things/s
     
    MioTaku and Levi like 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.