diff --git a/core/src/main/java/tc/oc/pgm/action/actions/KillEntitiesAction.java b/core/src/main/java/tc/oc/pgm/action/actions/KillEntitiesAction.java index 62a28d230c..c9c46007e1 100644 --- a/core/src/main/java/tc/oc/pgm/action/actions/KillEntitiesAction.java +++ b/core/src/main/java/tc/oc/pgm/action/actions/KillEntitiesAction.java @@ -2,6 +2,7 @@ import org.bukkit.entity.Entity; import org.bukkit.entity.Item; +import org.bukkit.entity.Player; import org.bukkit.event.entity.ItemDespawnEvent; import tc.oc.pgm.api.filter.Filter; import tc.oc.pgm.api.match.Match; @@ -23,7 +24,8 @@ public void trigger(Match match) { .getEntities() .forEach( (Entity entity) -> { - if (filter.query(new EntityQuery(null, entity)).isAllowed()) { + if (!(entity instanceof Player) + && filter.query(new EntityQuery(null, entity)).isAllowed()) { if (entity instanceof Item) { match.callEvent(new ItemDespawnEvent((Item) entity, entity.getLocation())); }