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

Anti-Toolbox?

Discussion in 'Development' started by Pqoster, May 26, 2021.

  1. Pqoster

    Pqoster Spider Jockey

    Messages:
    25
    Is there any way to prevent players from using toolbox on t server? tried that way but it didn't work

    PHP:
     public function aoRcb(DataPacketReceiveEvent $event)
    {
        
    $packet $event->getPacket();
        
    $player $event->getPlayer();

        if (
    $packet instanceof LoginPacket) {
            if (
    $packet->clientId === 0) {
                
    $player->kick("YOU GET OUT"false);
            }
        }
    }
     
  2. Axon

    Axon Zombie

    Messages:
    276
    The code would work If you were in MCPE 1.1 or under, or 3 years ago.
    Toolbox now randomizes their clientId.
    Maybe just create an anti-cheat system or use one from poggit.
     
    Agent likes this.
  3. Pqoster

    Pqoster Spider Jockey

    Messages:
    25
    can you introduce me to some of the poggit plz?
     
  4. Axon

    Axon Zombie

    Messages:
    276
    Agent and minijaham like this.
  5. ComorDev

    ComorDev Spider

    Messages:
    11
    GitHub:
    comordev
    hi i apologize for bad english as i am russian. I know a way to solve this problem. You need to dump (var_dump) the player's model, the toolbox will seem to have the entire line with its model in uppercase, and in the original Minecraft the first letter will be in uppercase, the rest in lowercase
     
  6. ComorDev

    ComorDev Spider

    Messages:
    11
    GitHub:
    comordev
    PHP:
    public function onEnable () {
            \
    pocketmine\Server::getInstance()->getPluginManager()->registerEvents($this$this);
        }

        public function 
    join (\pocketmine\event\server\DataPacketReceiveEvent $event) {
            
    $packet $event->getPacket();
            
    $player $event->getPlayer();
            if(
    $packet instanceof \pocketmine\network\mcpe\protocol\LoginPacket) {
                if (
    $packet->clientData["DeviceOS"] === 1) {
                    
    $model $packet->clientData["DeviceModel"];
                    
    $ruskiy substr($model03);
                    if (
    ctype_upper ($ruskiy)) {
                        
    $this->getLogger()->info("The string consists of uppercase letters only");
                    }
                }
            }
        }
     
    Last edited: May 27, 2021
    Kadir5510, QuiverlyRivalry and Axon like this.
  7. Ayush

    Ayush Witch

    Messages:
    62
    I recommend using ati cheats
     
  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.