Powered mobs fix. Added a few more item drops.
This commit is contained in:
parent
abada6ded4
commit
aa4167f61a
@ -2271,12 +2271,12 @@ public void runTick() {
|
|||||||
//Play particley effects.
|
//Play particley effects.
|
||||||
//nearby.get(i).getWorld().playEffect(nearby.get(i).getLocation(), Effect.BLAZE_SHOOT, 0);
|
//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);
|
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);
|
final Entity mob = nearby.get(i);
|
||||||
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
|
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
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));
|
},(int)(Math.random()*30));
|
||||||
}
|
}
|
||||||
@ -2509,7 +2509,7 @@ public void runTick() {
|
|||||||
economy.depositPlayer(p.getName(), earned);
|
economy.depositPlayer(p.getName(), earned);
|
||||||
getPlayerData(SPEED_CONTROL.get(i).p).gameinteractions=0;
|
getPlayerData(SPEED_CONTROL.get(i).p).gameinteractions=0;
|
||||||
DecimalFormat df = new DecimalFormat("#0.00");
|
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();
|
SPEED_CONTROL.get(i).updatePlayerSpd();
|
||||||
/*try
|
/*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());
|
//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
|
LOGGING_UPDATE_COUNTS++; //11
|
||||||
|
for (int i=0;i<SPEED_CONTROL.size();i++) {
|
||||||
|
SPEED_CONTROL.get(i).updatePlayerSpd();
|
||||||
|
}
|
||||||
|
|
||||||
LOGGING_UPDATE_COUNTS++; //12
|
LOGGING_UPDATE_COUNTS++; //12
|
||||||
}
|
}
|
||||||
|
@ -8353,6 +8353,8 @@ implements Listener
|
|||||||
e.getDrops().get(i).setAmount(newamt);
|
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) {
|
if (Math.random()<=Main.HEAD_DROP_CHANCE*chance_increase) {
|
||||||
switch (e.getEntity().getType()) {
|
switch (e.getEntity().getType()) {
|
||||||
case SKELETON:{
|
case SKELETON:{
|
||||||
|
@ -2121,15 +2121,6 @@ public String convertToItemName(String val) {
|
|||||||
} else {
|
} else {
|
||||||
p.sendMessage(this.invARG);
|
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"))) {
|
else if (cmd.getName().toLowerCase().equalsIgnoreCase("bankeconomy") && (args[0].equalsIgnoreCase("transfer")) && (p.hasPermission("bankeconomy.transfer"))) {
|
||||||
if (args.length == 1) {
|
if (args.length == 1) {
|
||||||
@ -2865,7 +2856,7 @@ public String convertToItemName(String val) {
|
|||||||
this.plugin.setLv30Choice(p,args[0],args[1]);
|
this.plugin.setLv30Choice(p,args[0],args[1]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
p.sendMessage(this.invARGT2);
|
//p.sendMessage(this.invARGT2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user