Not quite sure I understood exactly what you meant in here. But what comes to mind is that you could just create a .txt file which inputs all your ban ids that can be accessed by all the ops. (File could be accessed by a dropbox share, google drive, stuff like that.
For that you'd just add this code to your ban script.
write banlist.txt random text which can contain variables etc.
Other than that, you asked if you could make sure only ops can use commands. That done by adding this code to your commands.
if ($nick isop #) {