Better compatibility with claim plugins.

This commit is contained in:
Brianna 2019-10-08 15:43:30 -04:00
parent 4e9123d072
commit ade3694e56

View File

@ -5,6 +5,7 @@ import com.songoda.epicanchors.anchor.Anchor;
import com.songoda.epicanchors.settings.Settings; import com.songoda.epicanchors.settings.Settings;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener; import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockPlaceEvent; import org.bukkit.event.block.BlockPlaceEvent;
import org.bukkit.event.world.PortalCreateEvent; import org.bukkit.event.world.PortalCreateEvent;
@ -18,7 +19,7 @@ public class BlockListeners implements Listener {
this.plugin = instance; this.plugin = instance;
} }
@EventHandler(ignoreCancelled = true) @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
public void onBlockPlace(BlockPlaceEvent event) { public void onBlockPlace(BlockPlaceEvent event) {
ItemStack item = event.getItemInHand(); ItemStack item = event.getItemInHand();