Well, it was a nice attempt, but all it seems to do is tell the player "You're not allowed to spectate this player!" Maybe it's functioning correctly, but I guess what I had meant is that I'd like for the plugin to skip a player with /nospec active, as if he's not even in the server.
I appreciate the attempt though. Thanks