Don’t expexct too much, rthtrash.

I`m no programmer and not sure if I´m on the right track.
I just want to run BadBehavior without logging:
I uploaded the BadBehavior package to the MODX plugin folder, created a new Check Box TV named spamstop and set the default value to "0", the input option values to "1" so that the plugin works on documents, where the Check Box is clicked.
I´m not sure if the plugin code is right that should be executed on the OnLoadWebDocument event.
$badb=$modx->getTemplateVarOutput('spamstop',$modx->documentIdentifier);
if($badb['spamstop']=='1') {
include_once($modx->config["base_path"].'/assets/plugins/bad-behavior-generic.php');
}