diff --git a/build.gradle b/build.gradle index 3218260..0555e61 100644 --- a/build.gradle +++ b/build.gradle @@ -112,8 +112,7 @@ allprojects { compileOnly 'com.h2database:h2:2.2.220' compileOnly 'com.bgsoftware:WildStackerAPI:2023.2' compileOnly 'net.essentialsx:EssentialsX:2.19.0' - compileOnly 'com.github.Gypopo:EconomyShopGUI-API:1.6.0' - compileOnly 'com.github.Gypopo:EconomyShopGUI-API:1.6.0' + compileOnly 'com.github.Gypopo:EconomyShopGUI-API:1.7.0' compileOnly 'com.github.brcdev-minecraft:shopgui-api:3.0.0' compileOnly 'com.sk89q.worldguard:worldguard-bukkit:7.1.0-SNAPSHOT' compileOnly 'com.bgsoftware:SuperiorSkyblockAPI:2023.2' diff --git a/common/src/main/kotlin/com/artillexstudios/axminions/listeners/MinionPlaceListener.kt b/common/src/main/kotlin/com/artillexstudios/axminions/listeners/MinionPlaceListener.kt index ee3f3ba..2f26747 100644 --- a/common/src/main/kotlin/com/artillexstudios/axminions/listeners/MinionPlaceListener.kt +++ b/common/src/main/kotlin/com/artillexstudios/axminions/listeners/MinionPlaceListener.kt @@ -19,6 +19,7 @@ import org.bukkit.event.block.Action import org.bukkit.event.player.PlayerInteractEvent import org.bukkit.inventory.ItemStack import org.bukkit.persistence.PersistentDataType +import org.bukkit.event.block.BlockPlaceEvent class MinionPlaceListener : Listener { @@ -125,4 +126,11 @@ class MinionPlaceListener : Listener { ) } } + @EventHandler + fun onBlockPlace(event: BlockPlaceEvent) { + val blockLocation = event.block.location + if (AxMinionsPlugin.dataHandler.isMinion(blockLocation)) { + event.isCancelled = true + } + } } \ No newline at end of file