From 9b81b6191b1c0be33f03bf3efe9c3c7f9b5d9aca Mon Sep 17 00:00:00 2001 From: Steven Scott Date: Thu, 29 Mar 2012 21:18:04 -0700 Subject: [PATCH] [Version 0.7.6.4] - Move blockBreak to HIGHEST priority, this resolves issues with region protection plugins --- README | 2 ++ src/net/TheDgtl/Stargate/Stargate.java | 4 +++- src/plugin.yml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) 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