diff --git a/src/main/java/com/songoda/skyblock/permission/ListeningPermission.java b/src/main/java/com/songoda/skyblock/permission/ListeningPermission.java index fcc639c1..656672d8 100644 --- a/src/main/java/com/songoda/skyblock/permission/ListeningPermission.java +++ b/src/main/java/com/songoda/skyblock/permission/ListeningPermission.java @@ -10,6 +10,7 @@ import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; import org.bukkit.event.block.BlockBreakEvent; import org.bukkit.event.block.BlockIgniteEvent; +import org.bukkit.event.block.BlockMultiPlaceEvent; import org.bukkit.event.block.BlockPlaceEvent; import org.bukkit.event.entity.*; import org.bukkit.event.hanging.HangingBreakByEntityEvent; @@ -37,6 +38,8 @@ public abstract class ListeningPermission extends BasicPermission { public void onBreak(BlockBreakEvent event) {} public void onPlace(BlockPlaceEvent event) {} + + public void onMultiPlace(BlockMultiPlaceEvent event) {} public void onVehicleDamage(VehicleDamageEvent event) {} diff --git a/src/main/java/com/songoda/skyblock/permission/permissions/listening/PlacePermission.java b/src/main/java/com/songoda/skyblock/permission/permissions/listening/PlacePermission.java index c09643e1..cfa494cd 100644 --- a/src/main/java/com/songoda/skyblock/permission/permissions/listening/PlacePermission.java +++ b/src/main/java/com/songoda/skyblock/permission/permissions/listening/PlacePermission.java @@ -8,6 +8,7 @@ import com.songoda.skyblock.permission.PermissionHandler; import com.songoda.skyblock.permission.PermissionType; import org.bukkit.entity.Player; import org.bukkit.event.block.Action; +import org.bukkit.event.block.BlockMultiPlaceEvent; import org.bukkit.event.block.BlockPlaceEvent; import org.bukkit.event.player.PlayerInteractEvent; @@ -37,4 +38,9 @@ public class PlacePermission extends ListeningPermission { public void onPlace(BlockPlaceEvent event) { cancelAndMessage(event, event.getPlayer(), plugin, messageManager); } + + @PermissionHandler + public void onMultiPlace(BlockMultiPlaceEvent event) { + cancelAndMessage(event, event.getPlayer(), plugin, messageManager); + } }