Merge branch 'dev' into devAnvil

Conflicts:
	BankEconomyMod/src/me/kaZep/Base/PlayerListener.java
master_event
sigonasr2 11 years ago
commit a069027a33
  1. BIN
      BankEconomyMod/bin/me/kaZep/Base/EnchantLevelDatabase.class
  2. BIN
      BankEconomyMod/bin/me/kaZep/Base/Main$1.class
  3. BIN
      BankEconomyMod/bin/me/kaZep/Base/Main$2.class
  4. BIN
      BankEconomyMod/bin/me/kaZep/Base/Main$3.class
  5. BIN
      BankEconomyMod/bin/me/kaZep/Base/Main$4.class
  6. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerBuffData.class
  7. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$1.class
  8. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$10.class
  9. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$11.class
  10. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$12.class
  11. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$13.class
  12. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$14.class
  13. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$15.class
  14. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$16.class
  15. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$17.class
  16. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$2.class
  17. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$3.class
  18. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$4.class
  19. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$5.class
  20. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$6.class
  21. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$7.class
  22. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$8.class
  23. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$9.class
  24. BIN
      BankEconomyMod/bin/me/kaZep/Commands/commandBankEconomy$1.class
  25. BIN
      BankEconomyMod/bin/me/kaZep/Commands/commandBankEconomy$2.class
  26. BIN
      BankEconomyMod/bin/me/kaZep/Commands/commandBankEconomy$3.class
  27. BIN
      BankEconomyMod/bin/me/kaZep/Commands/commandBankEconomy$4.class
  28. BIN
      BankEconomyMod/bin/me/kaZep/Commands/commandBankEconomy$5.class
  29. BIN
      BankEconomyMod/bin/me/kaZep/Commands/commandBankEconomy$6.class
  30. BIN
      BankEconomyMod/bin/me/kaZep/Commands/commandBankEconomy.class
  31. 26
      BankEconomyMod/src/me/kaZep/Base/PlayerListener.java

@ -6840,14 +6840,13 @@ implements Listener
if (e.getEntity() instanceof Wither) { if (e.getEntity() instanceof Wither) {
e.setDamage(e.getDamage()*0.075d); e.setDamage(e.getDamage()*0.075d);
} }
if (e.getEntity().getType()==EntityType.ZOMBIE) { if (e.getEntity().getType()==EntityType.ZOMBIE) {
Zombie z = (Zombie)e.getEntity(); Zombie z = (Zombie)e.getEntity();
if (z.getCustomName()==null && z.getMaxHealth()>65) { if (z.getCustomName()==null && z.getHealth()>65) {
//If it's a normal zombie with too much HP, something wrong. Lower it. //If it's a normal zombie with too much HP, something's wrong. Lower it.
z.setMaxHealth(65); z.setHealth(65-z.getMaxHealth()/2);
z.setHealth(z.getMaxHealth()); }
} }
}
if (e.getDamager() instanceof Projectile) { if (e.getDamager() instanceof Projectile) {
Projectile pp = (Projectile)(e.getDamager()); Projectile pp = (Projectile)(e.getDamager());
if (pp.getShooter() instanceof Player && l instanceof Wither) { if (pp.getShooter() instanceof Player && l instanceof Wither) {
@ -10693,10 +10692,10 @@ implements Listener
@EventHandler @EventHandler
public void onMinecartExit(VehicleExitEvent e) { public void onMinecartExit(VehicleExitEvent e) {
if (e.getVehicle().getType()==EntityType.MINECART && e.getVehicle().getPassenger().getType()==EntityType.PLAYER && ((Player)e.getVehicle().getPassenger()).isOnline()) { if (e.getVehicle().getType()==EntityType.MINECART && e.getVehicle().getPassenger().getType()==EntityType.PLAYER) {
Bukkit.getWorld("world").dropItemNaturally(e.getVehicle().getLocation(),new ItemStack(Material.MINECART)); Bukkit.getWorld("world").dropItemNaturally(e.getVehicle().getLocation(),new ItemStack(Material.MINECART));
e.getVehicle().remove(); e.getVehicle().remove();
} }
} }
@EventHandler @EventHandler
@ -11212,6 +11211,9 @@ implements Listener
@EventHandler @EventHandler
public void onPlayerLeave(PlayerQuitEvent e) { public void onPlayerLeave(PlayerQuitEvent e) {
Player p = e.getPlayer(); Player p = e.getPlayer();
if (p.isInsideVehicle()) {
p.leaveVehicle();
}
for (int i=0;i<this.plugin.SPEED_CONTROL.size();i++) { for (int i=0;i<this.plugin.SPEED_CONTROL.size();i++) {
if (this.plugin.SPEED_CONTROL.get(i).p.getName().compareTo(p.getName())==0) { if (this.plugin.SPEED_CONTROL.get(i).p.getName().compareTo(p.getName())==0) {
p.removePotionEffect(PotionEffectType.SPEED); p.removePotionEffect(PotionEffectType.SPEED);

Loading…
Cancel
Save