diff --git a/plugin/src/ifteam/CustomPacket/SocketInterface.php b/plugin/src/ifteam/CustomPacket/SocketInterface.php index 713f112..6486b3a 100644 --- a/plugin/src/ifteam/CustomPacket/SocketInterface.php +++ b/plugin/src/ifteam/CustomPacket/SocketInterface.php @@ -48,8 +48,11 @@ public function handlePacket(){ $player = $this->server->getPlayerExact(self::$ipCache[$packet->address]['username']); } if($player === null){ + /* $this->server->getLogger()->warning("[CustomPacket] Invalid packet from unconnected client $packet->address"); $packet->printDump(); + */ //TODO: Add option for auto-banning unrecognized clients + /* $this->server->getLogger()->notice("[CustomPacket] Blocking address $packet->address for ".self::BLOCK_TIME_SECONDS." seconds"); CPAPI::blockAddress($packet->address, (int) self::BLOCK_TIME_SECONDS); @@ -103,4 +106,4 @@ public function readInternalQueue(){ return $this->internalThreaded->shift(); } -} \ No newline at end of file +}