mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
fix pve against animals on other plots and roads
This commit is contained in:
parent
924b73f070
commit
8f1b2a9d2a
@ -272,11 +272,12 @@ public class BukkitEntityUtil {
|
|||||||
}
|
}
|
||||||
} else if (roadFlags && (area.getRoadFlag(AnimalAttackFlag.class) || area
|
} else if (roadFlags && (area.getRoadFlag(AnimalAttackFlag.class) || area
|
||||||
.getFlag(PveFlag.class))) {
|
.getFlag(PveFlag.class))) {
|
||||||
if (!Permissions.hasPermission(plotPlayer, "plots.admin.pve." + stub)) {
|
return true;
|
||||||
MainUtil.sendMessage(plotPlayer, Captions.NO_PERMISSION_EVENT,
|
}
|
||||||
"plots.admin.pve." + stub);
|
if (!Permissions.hasPermission(plotPlayer, "plots.admin.pve." + stub)) {
|
||||||
return false;
|
MainUtil.sendMessage(plotPlayer, Captions.NO_PERMISSION_EVENT,
|
||||||
}
|
"plots.admin.pve." + stub);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
} else if (EntityCategories.VEHICLE
|
} else if (EntityCategories.VEHICLE
|
||||||
.contains(entityType)) { // Vehicles are managed in vehicle destroy event
|
.contains(entityType)) { // Vehicles are managed in vehicle destroy event
|
||||||
|
Loading…
Reference in New Issue
Block a user