mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-12 09:35:26 +02:00
Bounce projectiles, if they are cancelled.
This commit is contained in:
@@ -125,6 +125,7 @@ public class EssentialsProtectEntityListener extends EntityListener
|
|||||||
&& !user.isAuthorized("essentials.protect.damage.disable")))
|
&& !user.isAuthorized("essentials.protect.damage.disable")))
|
||||||
{
|
{
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
((EntityDamageByProjectileEvent)event).setBounce(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user