1
0
Fork 0

changed event priority to give partial compatibility to McMMO

This commit is contained in:
lightling 2019-09-20 22:44:05 -04:00
parent 06fc0ffa3f
commit d3b80c17ba
2 changed files with 4 additions and 1 deletions

View file

@ -12,5 +12,6 @@
<attribute name="javadoc_location" value="https://hub.spigotmc.org/javadocs/spigot/"/> <attribute name="javadoc_location" value="https://hub.spigotmc.org/javadocs/spigot/"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="lib" path="E:/Lightling/Libraries/Downloads/mcMMO-master/target/mcMMO-2.1.108-SNAPSHOT-shaded.jar"/>
<classpathentry kind="output" path="bin"/> <classpathentry kind="output" path="bin"/>
</classpath> </classpath>

View file

@ -5,6 +5,7 @@ import org.bukkit.Material;
import org.bukkit.block.Block; import org.bukkit.block.Block;
import org.bukkit.block.BlockFace; import org.bukkit.block.BlockFace;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.Bukkit;
import org.bukkit.Chunk; import org.bukkit.Chunk;
import org.bukkit.Location; import org.bukkit.Location;
@ -19,6 +20,7 @@ import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener; import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockBreakEvent; import org.bukkit.event.block.BlockBreakEvent;
import org.bukkit.event.block.BlockPlaceEvent; import org.bukkit.event.block.BlockPlaceEvent;
import com.gmail.nossr50.mcMMO;
import lightling.gibsoniacraft.GibsoniaCraft; import lightling.gibsoniacraft.GibsoniaCraft;
import lightling.gibsoniacraft.crafting.ChunkLoader; import lightling.gibsoniacraft.crafting.ChunkLoader;
@ -49,7 +51,7 @@ public class BlockListener implements Listener
* Handle the breaking of blocks via the hammer/excavator * Handle the breaking of blocks via the hammer/excavator
* @param bbEvent The event that triggered this method * @param bbEvent The event that triggered this method
*/ */
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true) @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void Break(BlockBreakEvent bbEvent) public void Break(BlockBreakEvent bbEvent)
{ {
// Grab current tool information // Grab current tool information