Added minecart colors

This commit is contained in:
Sam 2016-08-09 12:53:34 +01:00
parent 2f3ff052ff
commit acd5e0c1d2
3 changed files with 18 additions and 19 deletions

View File

@ -52,9 +52,7 @@ public class Quiver1_9 implements Listener
player.kickPlayer("This game requires 1.9+!"); player.kickPlayer("This game requires 1.9+!");
} }
} }
}
else if (event.GetState() == GameState.End)
{
UtilServer.Unregister(this); UtilServer.Unregister(this);
} }
} }

View File

@ -41,21 +41,21 @@ public class UltimateHeadHunter extends Ultimate
} }
} }
// @Override @Override
// public void cancel(Player player) public void cancel(Player player)
// { {
// super.cancel(player); super.cancel(player);
//
// Game game = Manager.GetGame(); Game game = Manager.GetGame();
//
// for (Player other : game.GetPlayers(true)) for (Player other : game.GetPlayers(true))
// { {
// if (!game.GetTeam(player).equals(game.GetTeam(other))) if (!game.GetTeam(player).equals(game.GetTeam(other)))
// { {
// other.removePotionEffect(PotionEffectType.GLOWING); other.removePotionEffect(PotionEffectType.GLOWING);
// } }
// } }
// } }
@Override @Override
public double getChargeIncreasePerSecond() public double getChargeIncreasePerSecond()

View File

@ -48,7 +48,8 @@ public class UltimateNinja extends Ultimate
{ {
super.activate(player); super.activate(player);
player.getInventory().setItem(0, new ItemStack(Material.DIAMOND_SWORD)); player.getInventory().setItem(0, null);
player.getInventory().addItem(new ItemStack(Material.DIAMOND_SWORD));
player.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, (int) ((_length / 1000) * 20), SPEED_AMPLIFiER)); 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); UtilParticle.PlayParticleToAll(ParticleType.FIREWORKS_SPARK, player.getEyeLocation(), 0, 0, 0, 1F, 50, ViewDist.NORMAL);