Powered mobs fix. Added a few more item drops.

dev
sigonasr2 11 years ago
parent abada6ded4
commit aa4167f61a
  1. 9
      BankEconomyMod/src/me/kaZep/Base/Main.java
  2. 2
      BankEconomyMod/src/me/kaZep/Base/PlayerListener.java
  3. 11
      BankEconomyMod/src/me/kaZep/Commands/commandBankEconomy.java

@ -2271,12 +2271,12 @@ public void runTick() {
//Play particley effects.
//nearby.get(i).getWorld().playEffect(nearby.get(i).getLocation(), Effect.BLAZE_SHOOT, 0);
nearby.get(i).getWorld().playSound(nearby.get(i).getLocation(), Sound.BLAZE_BREATH, 0.1f, 0.2f);
for (int z=0;z<10;z++) {
for (int z=0;z<3;z++) {
final Entity mob = nearby.get(i);
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
@Override
public void run() {
mob.getWorld().playEffect(new Location(mob.getWorld(), mob.getLocation().getX()+(Math.random()*1-Math.random()*1), mob.getLocation().getY()+(Math.random()*1-Math.random()*1), mob.getLocation().getZ()+(Math.random()*1-Math.random()*1)), Effect.MOBSPAWNER_FLAMES, 0);
mob.getWorld().playEffect(new Location(mob.getWorld(), mob.getLocation().getX()+(Math.random()*1-Math.random()*1), mob.getLocation().getY()+(Math.random()*1-Math.random()*1), mob.getLocation().getZ()+(Math.random()*1-Math.random()*1)), Effect.STEP_SOUND, Material.STATIONARY_LAVA.getId());
}
},(int)(Math.random()*30));
}
@ -2509,7 +2509,7 @@ public void runTick() {
economy.depositPlayer(p.getName(), earned);
getPlayerData(SPEED_CONTROL.get(i).p).gameinteractions=0;
DecimalFormat df = new DecimalFormat("#0.00");
SPEED_CONTROL.get(i).p.sendMessage(ChatColor.YELLOW+"You made $"+df.format(earned)+" in the past hour!");
SPEED_CONTROL.get(i).p.sendMessage(ChatColor.YELLOW+"You made $"+df.format(earned)+" in the past 30 minutes!");
SPEED_CONTROL.get(i).updatePlayerSpd();
/*try
{
@ -3831,6 +3831,9 @@ public void checkJukeboxes() {
//Bukkit.getPlayer("sigonasr2").sendMessage("Jukebox "+i+" Properties: "+((Jukebox)(jukeboxlist.get(i).getJukebox().getState())).getPlaying()+","+((Jukebox)(jukeboxlist.get(i).getJukebox().getState())).isPlaying());
}
LOGGING_UPDATE_COUNTS++; //11
for (int i=0;i<SPEED_CONTROL.size();i++) {
SPEED_CONTROL.get(i).updatePlayerSpd();
}
LOGGING_UPDATE_COUNTS++; //12
}

@ -8353,6 +8353,8 @@ implements Listener
e.getDrops().get(i).setAmount(newamt);
}
}
if (Math.random()<=0.00390625) {e.getDrops().add(getGoodie(2));}
if (Math.random()<=0.00390625/4.0d) {e.getDrops().add(getGoodie(3));}
if (Math.random()<=Main.HEAD_DROP_CHANCE*chance_increase) {
switch (e.getEntity().getType()) {
case SKELETON:{

@ -2121,15 +2121,6 @@ public String convertToItemName(String val) {
} else {
p.sendMessage(this.invARG);
}
} else if ((args[0].equalsIgnoreCase("reload")) && (p.hasPermission("bankeconomy.reload"))) {
if (args.length == 1) {
p.sendMessage(this.prefix + " " + this.cmdReload);
FileConfiguration conf = this.plugin.getConfig();
this.plugin.reloadConfig();
return conf == this.plugin.getConfig();
}
p.sendMessage(this.invARG);
}
else if (cmd.getName().toLowerCase().equalsIgnoreCase("bankeconomy") && (args[0].equalsIgnoreCase("transfer")) && (p.hasPermission("bankeconomy.transfer"))) {
if (args.length == 1) {
@ -2865,7 +2856,7 @@ public String convertToItemName(String val) {
this.plugin.setLv30Choice(p,args[0],args[1]);
}
else {
p.sendMessage(this.invARGT2);
//p.sendMessage(this.invARGT2);
}
}

Loading…
Cancel
Save