From 9793f6123397656dd0a9cfb49c8b74777eaff942 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Fri, 11 Feb 2011 23:45:03 -0800 Subject: [PATCH] 0.5.5 - Dem bugs man! --- mcMMO/com/bukkit/nossr50/mcMMO/mcEntityListener.java | 6 +++--- mcMMO/com/bukkit/nossr50/mcMMO/mcm.java | 2 ++ mcMMO/plugin.yml | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/mcMMO/com/bukkit/nossr50/mcMMO/mcEntityListener.java b/mcMMO/com/bukkit/nossr50/mcMMO/mcEntityListener.java index 76c7ee535..4addbe261 100644 --- a/mcMMO/com/bukkit/nossr50/mcMMO/mcEntityListener.java +++ b/mcMMO/com/bukkit/nossr50/mcMMO/mcEntityListener.java @@ -137,7 +137,7 @@ public class mcEntityListener extends EntityListener { if(y instanceof Zombie){ mcUsers.getProfile(defender).setDead(true); for(Player derp : plugin.getServer().getOnlinePlayers()){ - derp.sendMessage(ChatColor.GRAY + "A "+ChatColor.DARK_BLUE+"Zombie"+ChatColor.GRAY+" has killed "+ChatColor.DARK_RED+defender.getName()); + derp.sendMessage(ChatColor.GRAY + "A "+ChatColor.DARK_AQUA+"Zombie"+ChatColor.GRAY+" has killed "+ChatColor.DARK_RED+defender.getName()); } } } @@ -447,7 +447,7 @@ public class mcEntityListener extends EntityListener { * Defender is Animals */ if(x instanceof Animals){ - Monster defender = (Monster)x; + Animals defender = (Animals)x; if(mcUsers.getProfile(attacker).getArcheryInt() >= 50 && mcUsers.getProfile(attacker).getArcheryInt() < 150) defender.setHealth(defender.getHealth() - 1); if(mcUsers.getProfile(attacker).getArcheryInt() >= 150 && mcUsers.getProfile(attacker).getArcheryInt() < 375) @@ -465,7 +465,7 @@ public class mcEntityListener extends EntityListener { * Defender is Squid */ if(x instanceof Squid){ - Monster defender = (Monster)x; + Squid defender = (Squid)x; if(mcUsers.getProfile(attacker).getArcheryInt() >= 50 && mcUsers.getProfile(attacker).getArcheryInt() < 150) defender.setHealth(defender.getHealth() - 1); if(mcUsers.getProfile(attacker).getArcheryInt() >= 150 && mcUsers.getProfile(attacker).getArcheryInt() < 375) diff --git a/mcMMO/com/bukkit/nossr50/mcMMO/mcm.java b/mcMMO/com/bukkit/nossr50/mcMMO/mcm.java index 0708de4e7..a520f2301 100644 --- a/mcMMO/com/bukkit/nossr50/mcMMO/mcm.java +++ b/mcMMO/com/bukkit/nossr50/mcMMO/mcm.java @@ -338,8 +338,10 @@ public class mcm { if(type == 59 && block.getData() == (byte) 0x7){ mat = Material.getMaterial(296); is = new ItemStack(mat, 1, (byte)0, (byte)0); + if(Math.random() * 100 > 80){ mcUsers.getProfile(player).skillUpHerbalism(1); player.sendMessage(ChatColor.YELLOW+"Herbalism skill increased by 1. Total ("+mcUsers.getProfile(player).getHerbalismInt()+")"); + } if(mcUsers.getProfile(player).getHerbalismInt() >= 50 && mcUsers.getProfile(player).getHerbalismInt() < 150){ if(Math.random() * 10 > 8) loc.getWorld().dropItemNaturally(loc, is); diff --git a/mcMMO/plugin.yml b/mcMMO/plugin.yml index 5e6740803..1971620fa 100644 --- a/mcMMO/plugin.yml +++ b/mcMMO/plugin.yml @@ -1,3 +1,3 @@ name: mcMMO main: com.bukkit.nossr50.mcMMO.mcMMO -version: 0.5.3 \ No newline at end of file +version: 0.5.5 \ No newline at end of file