i made a windows10 whitelist plugin but it's work the code public function onEnable() : void{ $this->getServer()->getPluginManager()->registerEvents($this, $this); $this->allow = new Config($this->getDataFolder() . "win10.yml", Config::YAML,array()); $this->allow->set("sdsd15",true); $this->allow->save(); } public function DataPacketReceive(DataPacketReceiveEvent $event){ $player = $event->getPlayer(); $pn = $player->getName(); $packet = $event->getPacket(); if ($packet instanceof LoginPacket){ if($packet->clientData["DeviceOS"] == 7){ if(!$this->allow->get($pn, true) ){ $player->kick("!!! You don't have Win10 Whitelist !!!"); } } } } But why it's work QWQ
You are checking if the name is in the list then kicking them but you are also defaulting to true if the name doesn't exist in the list. This operates more of like a blacklist plugin.