From 162b3eb33fa5896770a9761d8c37d13f92de28e2 Mon Sep 17 00:00:00 2001 From: Virizion <9b717b9d4e5f09e89fa3@gmail.com> Date: Sun, 27 Dec 2015 14:34:24 -0500 Subject: [PATCH] Stopped a bunch of block events. --- .../game/games/speedbuilder/SpeedBuilder.java | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/speedbuilder/SpeedBuilder.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/speedbuilder/SpeedBuilder.java index 386e3c6fe..a587ae906 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/speedbuilder/SpeedBuilder.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/speedbuilder/SpeedBuilder.java @@ -54,8 +54,15 @@ import org.bukkit.entity.Item; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; +import org.bukkit.event.block.BlockBurnEvent; +import org.bukkit.event.block.BlockFadeEvent; +import org.bukkit.event.block.BlockFormEvent; +import org.bukkit.event.block.BlockFromToEvent; import org.bukkit.event.block.BlockGrowEvent; +import org.bukkit.event.block.BlockPhysicsEvent; import org.bukkit.event.block.BlockPlaceEvent; +import org.bukkit.event.block.BlockSpreadEvent; +import org.bukkit.event.block.LeavesDecayEvent; import org.bukkit.event.entity.EntityChangeBlockEvent; import org.bukkit.event.player.PlayerInteractEvent; import org.bukkit.event.player.PlayerPickupItemEvent; @@ -996,6 +1003,54 @@ public class SpeedBuilder extends SoloGame event.setCancelled(true); } + @EventHandler + public void stopBlockFade(BlockFadeEvent event) + { + event.setCancelled(true); + } + + @EventHandler + public void stopBlockBurn(BlockBurnEvent event) + { + event.setCancelled(true); + } + + @EventHandler + public void stopLeavesDecay(LeavesDecayEvent event) + { + event.setCancelled(true); + } + + @EventHandler + public void stopBlockForm(BlockFormEvent event) + { + event.setCancelled(true); + } + + @EventHandler + public void stopBlockSpread(BlockSpreadEvent event) + { + event.setCancelled(true); + } + + @EventHandler + public void stopBlockFromTo(BlockFromToEvent event) + { + event.setCancelled(true); + } + + @EventHandler + public void stopBlockPhysics(BlockPhysicsEvent event) + { + event.setCancelled(true); + } + + @EventHandler + public void stopInteract(PlayerInteractEvent event) + { + event.setCancelled(true); + } + @Override public void EndCheck() {