diff --git a/TwosideKeeper.jar b/TwosideKeeper.jar index a7bf237..e024e21 100644 Binary files a/TwosideKeeper.jar and b/TwosideKeeper.jar differ diff --git a/src/plugin.yml b/src/plugin.yml index f67ce80..36c7759 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -1,6 +1,6 @@ name: TwosideKeeper main: sig.plugin.TwosideKeeper.TwosideKeeper -version: 3.5.4r4 +version: 3.5.4r5 commands: money: description: Tells the player the amount of money they are holding. diff --git a/src/sig/plugin/TwosideKeeper/HelperStructures/ArtifactAbility.java b/src/sig/plugin/TwosideKeeper/HelperStructures/ArtifactAbility.java index bb1250e..0c103c2 100644 --- a/src/sig/plugin/TwosideKeeper/HelperStructures/ArtifactAbility.java +++ b/src/sig/plugin/TwosideKeeper/HelperStructures/ArtifactAbility.java @@ -107,7 +107,7 @@ public enum ArtifactAbility { new double[]{0.6,0.575,0.55,0.525,0.5,0.475,0.45,0.425,0.4,0.375},100,10,UpgradePath.SCYTHE), //General abilities - AUTOREPAIR("Auto Repair","1% chance every second to repair [VAL] durability to the artifact item\n\nThe item must be sitting in your hotbar or must be equipped for this ability to work. This ability is less effective with no sunlight!",new double[]{6,7,8,9,10,11,12,13,14,15}, + AUTOREPAIR("Auto Repair","1% chance every second to repair [VAL] durability to the artifact item\n\nThe item must be sitting in your hotbar or must be equipped for this ability to work. This ability is less effective with no sunlight!",new double[]{3,3.5,4,4.5,5,5.5,6,6.5,7,7.5}, new double[]{1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0},10,1,UpgradePath.ALL), GREED("Greed","Increases Drop rate by [VAL]% . Health is halved, health regeneration is halved, and damage reduction is halved. Consumes one level of Greed per level up.",new double[]{50,55,60,65,70,75,80,85,90,95}, new double[]{2.0,2.0,2.0,2.0,2.0,2.0,2.0,2.0,2.0,2.0},100,10,UpgradePath.ALL), diff --git a/src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java b/src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java index 39ebee1..370bbed 100644 --- a/src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java +++ b/src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java @@ -1484,9 +1484,27 @@ public class GenericFunctions { } } } + case BOAT:{ + return "Oak Boat"; + } + case CLAY_BRICK:{ + return "Brick"; + } + case BRICK:{ + return "Bricks"; + } + case FIREWORK:{ + return "Firework Rocket"; + } + case FIREWORK_CHARGE:{ + return "Firework Star"; + } case EXP_BOTTLE:{ return "Bottle o' Enchanting"; } + case GOLD_SWORD:{ + return "Golden Sword"; + } default:{ return GenericFunctions.CapitalizeFirstLetters(type.getType().toString().replace("_", " ")); } @@ -2196,15 +2214,14 @@ public class GenericFunctions { TwosideKeeper.log("Attack is dealing "+finaldmg, 2); if (target.getHealth()>finaldmg) { TwosideKeeper.log("NOT FULL HEALTH. HP: "+target.getHealth(), 2); - target.setHealth(target.getHealth()-finaldmg); - target.damage(0.01); + //target.setHealth(target.getHealth()-finaldmg); + target.damage(finaldmg); target.setNoDamageTicks(20); } else { //Bukkit.getPluginManager().callEvent(new EntityDamageByEntityEvent(damager,target,DamageCause.ENTITY_ATTACK,finaldmg)); - //target.setHealth(0); - TwosideKeeper.log("FINISHING IT OFF. "+target.getHealth(), 2); - target.setHealth(0.001); - target.damage(9999999); + target.setHealth(0); + //target.damage(999999); + //TwosideKeeper.log("New Health."+target.getHealth(), 2); target.setNoDamageTicks(20); } } diff --git a/src/sig/plugin/TwosideKeeper/HelperStructures/MalleableBaseQuest.java b/src/sig/plugin/TwosideKeeper/HelperStructures/MalleableBaseQuest.java index 0c14d37..fb88fc4 100644 --- a/src/sig/plugin/TwosideKeeper/HelperStructures/MalleableBaseQuest.java +++ b/src/sig/plugin/TwosideKeeper/HelperStructures/MalleableBaseQuest.java @@ -219,7 +219,6 @@ public class MalleableBaseQuest { blacklisted_items.add(Material.FIRE); blacklisted_items.add(Material.FIREBALL); blacklisted_items.add(Material.FLOWER_POT); - blacklisted_items.add(Material.FROSTED_ICE); blacklisted_items.add(Material.GLOWING_REDSTONE_ORE); blacklisted_items.add(Material.GOLD_RECORD); blacklisted_items.add(Material.GRASS); diff --git a/src/sig/plugin/TwosideKeeper/TwosideKeeper.java b/src/sig/plugin/TwosideKeeper/TwosideKeeper.java index 7ca1f65..ebcca59 100644 --- a/src/sig/plugin/TwosideKeeper/TwosideKeeper.java +++ b/src/sig/plugin/TwosideKeeper/TwosideKeeper.java @@ -818,16 +818,18 @@ public class TwosideKeeper extends JavaPlugin implements Listener { p.getEquipment().getItemInMainHand().setType(Material.STONE_SPADE); } } + if (p.getLocation().add(0,0,0).getBlock().getType()==Material.PISTON_MOVING_PIECE) { + p.getLocation().add(0,0,0).getBlock().setType(Material.AIR); + } if (SERVER_TYPE==ServerType.TEST || SERVER_TYPE==ServerType.QUIET) { - - for (int i=0;i