I've tried to do a "if %obj.getClassName() not equals "Player"{ blah blah blah}", but nothing happens. "if %obj.getClassName() !=" doesn't seem to do anything, and I'm not sure if there's another place to put the !.
For now, I'm working around it with "if %obj.getClassName() $= "Player"{}else{blahblahblah}".