mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-26 12:36:00 +01:00
Projectile damage should no longer damage players if PvP is disabled
This commit is contained in:
parent
ff7329e3c4
commit
19b011981e
BIN
MobArena.jar
BIN
MobArena.jar
Binary file not shown.
@ -326,7 +326,7 @@ public class MAListener implements ArenaListener
|
||||
event.setCancelled(true);
|
||||
|
||||
// If PvP is disabled and damager is a player, cancel damage
|
||||
else if (damager instanceof Player && !arena.pvp)
|
||||
else if (!arena.pvp && (damager instanceof Player || (damager instanceof Projectile && ((Projectile) damager).getShooter() instanceof Player)))
|
||||
event.setCancelled(true);
|
||||
|
||||
// Log damage
|
||||
|
Loading…
Reference in New Issue
Block a user