NeatMonster/NoCheatPlus — pull request #3 by Johannes13 (2012-09-14 20:21:34+00:00)
Title: Don't check events if they are injected by other plugins.

Because we have some problems with Runecraft's Power Pick, I suggest that you add a check if the event comes from Bukkit or an other plugin. If it comes from an other plugin, assume it is fine that this block is broken.

Background: Some Plugins (like Runecraft, McMMO...) needs to destroy blocks on the behalf of a player. They will inject own events to check if a block can be broken (to obey protections), and break it afterwards.

McMMO: if the super pickaxe is activated, instant break of blocks that can be mined.
Runecraft: when a block is broken with an (powerpick) enchanted Pickaxe, break all blocks of the same type arround it (in an 3x3 area).

This leads to many violations (noswing, not visible, etc). that can even lead to a kick.