IServer

Importing the package

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import.
import crafttweaker.server.IServer;

Access the Server Handler

You can access the Brewing Handler using the server global keyword.
Alternatively you can get the server from any ICommandSender.

Check if a player is OP

You can use this to check if an IPlayer has the OP permission:

server.isOP(player);

Get the command manager

You can use this to get the ICommandManager

server.commandManager;