mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-10-30 17:13:43 +01:00 
			
		
		
		
	Fixes #1988
This commit is contained in:
		| @@ -2370,6 +2370,7 @@ public class PlayerEvents extends PlotListener implements Listener { | |||||||
|                     } |                     } | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|  |             System.out.println("Cancel entity damage"); | ||||||
|             event.setCancelled(true); |             event.setCancelled(true); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| @@ -2512,10 +2513,9 @@ public class PlayerEvents extends PlotListener implements Listener { | |||||||
|             } |             } | ||||||
|             return true; |             return true; | ||||||
|         } else if (dplot != null && (!(dplot.equals(vplot)) || (vplot != null && Objects.equals(dplot.owner, vplot.owner)))) { |         } else if (dplot != null && (!(dplot.equals(vplot)) || (vplot != null && Objects.equals(dplot.owner, vplot.owner)))) { | ||||||
|             return false; |             return vplot != null && Flags.PVE.isTrue(vplot); | ||||||
|         } |         } | ||||||
|         // player is null |         return ((vplot != null && Flags.PVE.isTrue(vplot)) || !(damager instanceof Arrow && !(victim instanceof Creature))); | ||||||
|         return !(damager instanceof Arrow && !(victim instanceof Creature)); |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) |     @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jesse Boyd
					Jesse Boyd