Protected squids in land claims.
This commit is contained in:
1 parent
7faf3e52be
commit
9b9303dd6f
1 file changed
+2
-1
@@ -52,6 +52,7 @@ import org.bukkit.entity.Projectile;
|
|||||||
import org.bukkit.entity.Tameable;
|
import org.bukkit.entity.Tameable;
|
||||||
import org.bukkit.entity.ThrownPotion;
|
import org.bukkit.entity.ThrownPotion;
|
||||||
import org.bukkit.entity.Villager;
|
import org.bukkit.entity.Villager;
|
||||||
|
import org.bukkit.entity.WaterMob;
|
||||||
|
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.EventPriority;
|
import org.bukkit.event.EventPriority;
|
||||||
@@ -718,7 +719,7 @@ public class EntityEventHandler implements Listener
|
|||||||
}
|
}
|
||||||
|
|
||||||
//if the entity is an non-monster creature (remember monsters disqualified above), or a vehicle
|
//if the entity is an non-monster creature (remember monsters disqualified above), or a vehicle
|
||||||
if ((subEvent.getEntity() instanceof Creature && GriefPrevention.instance.config_claims_protectCreatures))
|
if (((subEvent.getEntity() instanceof Creature || subEvent.getEntity() instanceof WaterMob) && GriefPrevention.instance.config_claims_protectCreatures))
|
||||||
{
|
{
|
||||||
//if entity is tameable and has an owner, apply special rules
|
//if entity is tameable and has an owner, apply special rules
|
||||||
if(subEvent.getEntity() instanceof Tameable)
|
if(subEvent.getEntity() instanceof Tameable)
|
||||||
|
|||||||
Reference in new issue
Block a user