From aa4167f61a8ae019c0ba22e1c6c6947b49b22d73 Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Sun, 16 Feb 2014 05:29:56 -0700 Subject: [PATCH] Powered mobs fix. Added a few more item drops. --- BankEconomyMod/src/me/kaZep/Base/Main.java | 9 ++++++--- BankEconomyMod/src/me/kaZep/Base/PlayerListener.java | 2 ++ .../src/me/kaZep/Commands/commandBankEconomy.java | 11 +---------- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/BankEconomyMod/src/me/kaZep/Base/Main.java b/BankEconomyMod/src/me/kaZep/Base/Main.java index e9268a5..ebe00d8 100644 --- a/BankEconomyMod/src/me/kaZep/Base/Main.java +++ b/BankEconomyMod/src/me/kaZep/Base/Main.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