|
|
|
@ -703,12 +703,12 @@ public class TwosideKeeper extends JavaPlugin implements Listener { |
|
|
|
|
}*/ |
|
|
|
|
for (int i3=0;i3<p.getEquipment().getArmorContents().length;i3++) { |
|
|
|
|
if (ArtifactAbility.containsEnchantment(ArtifactAbility.SHADOWWALKER, p.getEquipment().getArmorContents()[i3]) && |
|
|
|
|
p.isOnGround() && p.getLocation().getY()>=0 && p.getLocation().add(0,0,0).getBlock().getLightLevel()<=4) { |
|
|
|
|
p.isOnGround() && p.getLocation().getY()>=0 && p.getLocation().getY()<=255 && p.getLocation().add(0,0,0).getBlock().getLightLevel()<=4) { |
|
|
|
|
p.addPotionEffect(new PotionEffect(PotionEffectType.SPEED,20,1)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (ArtifactAbility.containsEnchantment(ArtifactAbility.SHADOWWALKER, p.getEquipment().getItemInMainHand()) && |
|
|
|
|
p.isOnGround() && p.getLocation().getY()>=0 && p.getLocation().add(0,0,0).getBlock().getLightLevel()<=4) { |
|
|
|
|
p.isOnGround() && p.getLocation().getY()>=0 && p.getLocation().getY()<=255 && p.getLocation().add(0,0,0).getBlock().getLightLevel()<=4) { |
|
|
|
|
p.addPotionEffect(new PotionEffect(PotionEffectType.SPEED,20,1)); |
|
|
|
|
//log("Apply speed. The light level here is "+p.getLocation().add(0,-1,0).getBlock().getLightLevel(),2);
|
|
|
|
|
} |
|
|
|
|