PHP: public function onReceive(DataPacketReceiveEvent $event){ $packet = $event->getPacket(); $player = $event->getPlayer(); if ($packet instanceof LoginPacket) { if ($packet->clientId === 0) { $player->kick($this->prefix . TF::RED . "Toolbox ist auf dem Netzwerk nicht erlaubt.", false); } }}
That code doesn't block any Mod App because they don't set clientid to 0. you can block a mod App from joining the server but you can detect if using hacks
I'm not sure if I understand well what you're saying, but from what I understand you're trying to block hacks, you can't block every mod apps they'll just bypass what you did, I was talking with dylan about that, you should not try and block clients but more the hacks theirselves, so you should try and not block blocklauncher but let's say reach, for that you need to make an anticheat https://github.com/DarkWav/SAC is one you can make yours yourself and ask for help here !
blocking client ID is like asking if a thief is the thief they can always lie, as you are asking them there's nothing you can stop them from lying if they wish