From 04c7f2c1f1bd1f9385be755634bc4a619a57e030 Mon Sep 17 00:00:00 2001 From: NewGarbo Date: Sun, 10 Jan 2016 22:20:50 +0000 Subject: [PATCH] made pressure plates, buttons, and levers from working with block toss --- .../game/classcombat/Skill/Brute/BlockToss.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Plugins/Mineplex.Minecraft.Game.ClassCombat/src/mineplex/minecraft/game/classcombat/Skill/Brute/BlockToss.java b/Plugins/Mineplex.Minecraft.Game.ClassCombat/src/mineplex/minecraft/game/classcombat/Skill/Brute/BlockToss.java index cb7be682b..cde190a34 100644 --- a/Plugins/Mineplex.Minecraft.Game.ClassCombat/src/mineplex/minecraft/game/classcombat/Skill/Brute/BlockToss.java +++ b/Plugins/Mineplex.Minecraft.Game.ClassCombat/src/mineplex/minecraft/game/classcombat/Skill/Brute/BlockToss.java @@ -62,7 +62,14 @@ public class BlockToss extends SkillCharge implements IThrown Material.BURNING_FURNACE, Material.WORKBENCH, Material.WATER, - Material.LAVA + Material.LAVA, + Material.STONE_PLATE, + Material.WOOD_PLATE, + Material.GOLD_PLATE, + Material.IRON_PLATE, + Material.STONE_BUTTON, + Material.WOOD_BUTTON, + Material.LEVER, }; public BlockToss(SkillFactory skills, String name, ClassType classType, SkillType skillType, int cost, int levels) @@ -127,8 +134,10 @@ public class BlockToss extends SkillCharge implements IThrown //Blacklist for (Material mat : _blacklist) if (mat == grab.getType()) + { + UtilPlayer.message(player, F.main("Game", "You cannot grab this block.")); return; - + } //Usable if (UtilBlock.usable(grab)) return;