diff --git a/README b/README index 5cd761c..7dfef41 100644 --- a/README +++ b/README @@ -204,6 +204,8 @@ createConflict=Gate conflicts with existing gate ============= Changes ============= +[Version 0.7.6.4] + - Move blockBreak to HIGHEST priority, this resolves issues with region protection plugins [Version 0.7.6.3] - Fixed issue with displaying iConomy prices - iConomy is now hooked on "sg reload" if not already hooked and enabled diff --git a/src/net/TheDgtl/Stargate/Stargate.java b/src/net/TheDgtl/Stargate/Stargate.java index fe2e5b5..88cb0c8 100644 --- a/src/net/TheDgtl/Stargate/Stargate.java +++ b/src/net/TheDgtl/Stargate/Stargate.java @@ -27,6 +27,7 @@ import org.bukkit.entity.Player; import org.bukkit.entity.Vehicle; import org.bukkit.event.Event.Result; import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.block.Action; import org.bukkit.event.block.BlockBreakEvent; @@ -910,7 +911,8 @@ public class Stargate extends JavaPlugin { }, 1); } - @EventHandler + // Switch to HIGHEST priority so as to come after block protection plugins (Hopefully) + @EventHandler(priority = EventPriority.HIGHEST) public void onBlockBreak(BlockBreakEvent event) { if (event.isCancelled()) return; Block block = event.getBlock(); diff --git a/src/plugin.yml b/src/plugin.yml index 5d445f6..4a2bec6 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -1,6 +1,6 @@ name: Stargate main: net.TheDgtl.Stargate.Stargate -version: 0.7.6.3 +version: 0.7.6.4 description: Stargate mod for Bukkit author: Drakia website: http://www.thedgtl.net