public function getBanActiveTimestamp(): int
    {
        $this->db->qb([
            'table' => 'core_bans',
            'fields' => 'logstamp',
            'filter' => 'ip=:ip AND code=0',
            'params' => [
                ':ip' => $this->ip
            ],
            'order' => 'logstamp DESC',
            'limit' => 1
        ]);

        $data = $this->db->value();

        return $data ? $data : 0;
    }