Merge branch 'dev' into devAnvil
Conflicts: BankEconomyMod/src/me/kaZep/Base/PlayerListener.java
This commit is contained in:
commit
a069027a33
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -6842,10 +6842,9 @@ implements Listener
|
|||||||
}
|
}
|
||||||
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) {
|
||||||
@ -10693,7 +10692,7 @@ 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();
|
||||||
}
|
}
|
||||||
@ -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…
x
Reference in New Issue
Block a user