Use attack name

This commit is contained in:
Sam 2016-08-09 13:07:17 +01:00
parent 95c23585c8
commit 5fd5245978

View File

@ -38,7 +38,7 @@ public class UltimateNinja extends Ultimate
if (getLastUltimate().containsKey(event.GetDamagerPlayer(false).getUniqueId()) && event.GetDamagerPlayer(false).getItemInHand().getType() == Material.DIAMOND_SWORD)
{
event.AddMod(event.GetDamagerPlayer(false).getName(), "Ninja Strike", 9001, false);
event.AddMod(event.GetDamagerPlayer(false).getName(), "Ninja Strike", 9001, true);
event.SetDamageToLevel(false);
}
}
@ -48,8 +48,7 @@ public class UltimateNinja extends Ultimate
{
super.activate(player);
player.getInventory().setItem(0, null);
player.getInventory().addItem(new ItemStack(Material.DIAMOND_SWORD));
player.getInventory().setItem(0, new ItemStack(Material.DIAMOND_SWORD));
player.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, (int) ((_length / 1000) * 20), SPEED_AMPLIFiER));
UtilParticle.PlayParticleToAll(ParticleType.FIREWORKS_SPARK, player.getEyeLocation(), 0, 0, 0, 1F, 50, ViewDist.NORMAL);