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. 12
      BankEconomyMod/src/me/kaZep/Base/PlayerListener.java

@ -6842,10 +6842,9 @@ implements Listener
}
if (e.getEntity().getType()==EntityType.ZOMBIE) {
Zombie z = (Zombie)e.getEntity();
if (z.getCustomName()==null && z.getMaxHealth()>65) {
//If it's a normal zombie with too much HP, something wrong. Lower it.
z.setMaxHealth(65);
z.setHealth(z.getMaxHealth());
if (z.getCustomName()==null && z.getHealth()>65) {
//If it's a normal zombie with too much HP, something's wrong. Lower it.
z.setHealth(65-z.getMaxHealth()/2);
}
}
if (e.getDamager() instanceof Projectile) {
@ -10693,7 +10692,7 @@ implements Listener
@EventHandler
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));
e.getVehicle().remove();
}
@ -11212,6 +11211,9 @@ implements Listener
@EventHandler
public void onPlayerLeave(PlayerQuitEvent e) {
Player p = e.getPlayer();
if (p.isInsideVehicle()) {
p.leaveVehicle();
}
for (int i=0;i<this.plugin.SPEED_CONTROL.size();i++) {
if (this.plugin.SPEED_CONTROL.get(i).p.getName().compareTo(p.getName())==0) {
p.removePotionEffect(PotionEffectType.SPEED);

Loading…
Cancel
Save