sk89q/worldguard — pull request #305 by Firedroide (2014-02-10 17:04:09+00:00)
Title: Add bow shooting and general projectile launching flags

This PR is very similar to #276, but this PR
- actually adds two new region flags, "bow-shoot" and "projectile-launch"
- adds two world configuration nodes to block shooting arrows or to entirely disable launching projectiles.

##### Necessity
As explained in #276, this feature is crucial to prevent a buildup of spammed arrows in certain regions.
It might also be used for creating structures like archery ranges where players are only allowed to shoot in one specific area.

##### Summary of function
What this PR basically does is listen to the events `EntityShootBowEvent` and `ProjectileLaunchEvent`.
If they are disabled by the world configuration or by a region flag, the events are cancelled.

-------------------

\
If you want to make collaboration easier, format your code better.
Some files have Windows CRLF line endings, most others have Unix LF line endings, which is annoying to deal with when making a pull request.
There are tons of lines with trailing whitespace, too.
\