The thing I wanted to tell you is that it's not good when you code something and dunno how and why it works. You know why your detection works? I guess not.
Kthxbai pr@ c@der.
I really can't understand what your problem is...
Nice plugin xPaw!Tested it and works nice!