pocketmine\Server::removeOp PHP Method

removeOp() public method

public removeOp ( string $name )
$name string
    public function removeOp($name)
    {
        $this->operators->remove(strtolower($name));
        if (($player = $this->getPlayerExact($name)) !== null) {
            $player->recalculatePermissions();
        }
        $this->operators->save();
    }
Server