pocketmine\permission\BanList::isBanned PHP Method

isBanned() public method

public isBanned ( string $name ) : boolean
$name string
return boolean
    public function isBanned($name)
    {
        $name = strtolower($name);
        if (!$this->isEnabled()) {
            return false;
        } else {
            $this->removeExpired();
            return isset($this->list[$name]);
        }
    }