diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/spawn/Spawn.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/spawn/Spawn.java index ae35f42f1..f885d1d05 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/spawn/Spawn.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/spawn/Spawn.java @@ -15,6 +15,7 @@ import org.bukkit.entity.Monster; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.block.BlockBreakEvent; +import org.bukkit.event.block.BlockBurnEvent; import org.bukkit.event.block.BlockIgniteEvent; import org.bukkit.event.block.BlockIgniteEvent.IgniteCause; import org.bukkit.event.entity.CreatureSpawnEvent; @@ -80,6 +81,15 @@ public class Spawn extends MiniPlugin } } + @EventHandler + public void onBlockBurn(BlockBurnEvent event) + { + if (isInSpawn(event.getBlock().getLocation())) + { + event.setCancelled(true); + } + } + /** * Prevent {@link ItemFrame}s from being broken inside Spawn. * @param event