File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Bukkit/src/main/java/com/plotsquared/bukkit/listener Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 3838 * @since TODO
3939 */
4040public class ProjectileLaunchEvent1211 implements Listener {
41-
41+
4242 @ EventHandler (ignoreCancelled = true )
4343 public void onWindCharge (ProjectileLaunchEvent event ) {
44-
44+
4545 Projectile entity = event .getEntity ();
4646 if ((entity .getType () != EntityType .WIND_CHARGE ) && (entity .getType () != EntityType .BREEZE_WIND_CHARGE )) {
4747 return ;
4848 }
49-
49+
5050 ProjectileSource shooter = entity .getShooter ();
5151 if (!(shooter instanceof Player )) {
5252 return ;
@@ -66,21 +66,21 @@ public void onWindCharge(ProjectileLaunchEvent event) {
6666 }
6767 return ;
6868 }
69-
69+
7070 if (!plot .hasOwner ()) {
7171 entity .remove ();
7272 event .setCancelled (true );
7373 return ;
7474 }
75-
75+
7676 if (!plot .isAdded (pp .getUUID ())) {
7777 if (!plot .getFlag (WindChargeFlag .class )) {
7878 plot .debug ("Could not update blocks by wind charge because wind-charge = false" );
7979 entity .remove ();
8080 event .setCancelled (true );
8181 }
8282 }
83-
83+
8484 }
8585
8686}
You can’t perform that action at this time.
0 commit comments