mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-05 16:08:14 +01:00
Bounce projectiles, if they are cancelled.
This commit is contained in:
parent
526df76ca9
commit
5006c68af2
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user